HSL(242, 7%, 84%)
Grayish White — White color
Adjust Color
Color Information
Color Name
Grayish White
Color Family
White
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(242,7%,84%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 7%, 84%) | color: hsl(242, 7%, 84%) | |
| HEX | #D4D3D9 | color: #D4D3D9 | |
| RGB | rgb(212, 211, 217) | color: rgb(212, 211, 217) | |
| CMYK | cmyk(2%, 3%, 0%, 15%) | — | |
| HSV | hsv(250, 3%, 85%) | — | |
| HWB | hwb(250 82% 15%) | color: hwb(250 82% 15%) | |
| OKLCH | oklch(0.8694 0.0082 293.89) | color: oklch(0.8694 0.0082 293.89) | |
| Lab | lab(84.79 1.44 -2.84) | color: lab(84.79 1.44 -2.84) | |
| LCH | lch(84.79 3.18 296.89) | color: lch(84.79 3.18 296.89) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: black
Color Blindness Simulation
Protanopia (Red-blind)
#D4D4D8 — rgb(212, 212, 216)
Deuteranopia (Green-blind)
#D4D4D7 — rgb(212, 212, 215)
Tritanopia (Blue-blind)
#D4D6D6 — rgb(212, 214, 214)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 7%, 84%);
text
color: hsl(242, 7%, 84%);
border
border: 2px solid hsl(242, 7%, 84%);
gradient light
background: linear-gradient(to right, hsl(242, 7%, 100%), hsl(242, 7%, 84%));
gradient dark
background: linear-gradient(to right, hsl(242, 7%, 84%), hsl(242, 7%, 64%))
hex
background-color: #D4D3D9;
tailwind
bg-[hsl(242,7%,84%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 7%, 84%, 0.4);
css variable
--color-primary: hsl(242, 7%, 84%);
Related Colors
Use Cases for Grayish White
Frequently Asked Questions
What are all the color codes for HSL(242, 7%, 84%)?
HEX: #D4D3D9 | RGB: rgb(212, 211, 217) | CMYK: 2%, 3%, 0%, 15% | HSV: 250°, 3%, 85%. Copy any format from the conversion table above.
What colors go well with #D4D3D9?
The complementary color is HSL(62, 7%, 84%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 7%, 84%) in CSS?
As HSL: color: hsl(242, 7%, 84%); — As HEX: color: #D4D3D9; — As RGB: color: rgb(212, 211, 217); — Tailwind CSS: bg-[hsl(242,7%,84%)] — CSS variable: --color-primary: hsl(242, 7%, 84%);