#D7D257#D7D257

#D7D257 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.4% C 0.144 H 106.9°. Best body text is #000000 at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#D7D257
RGBrgb(215, 210, 87)
HSLhsl(58, 62%, 59%)
HSVhsv(58, 60%, 84%)
CMYKcmyk(0%, 2.3%, 59.5%, 15.7%)
CIE-LABlab(82.50, -13.57, 59.96)
CIE-LCHlch(82.50, 61.48, 102.75°)
OKLaboklab(84.45% -0.0418 0.1375)
OKLCHoklch(84.45% 0.144 106.9)
XYZxyz(52.7929, 61.2300, 18.0526)
Luminance0.6123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D257 #575CD7
analogous
#D79257 #D7D257 #9CD757
triadic
#D7D257 #57D7D2 #D257D7
tetradic
#D7D257 #57D792 #575CD7 #D7579C
square
#D7D257 #57D792 #575CD7 #D7579C
split-complementary
#D7D257 #579CD7 #9257D7
monochromatic
#918D23 #C2BD2E #D7D257 #E3DF88 #EFECBA

Accessibility & contrast

On white

1.59
#D7D257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.25
#D7D257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D257
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D257#FFFFFF#000000##000000
##D7D2571.001.5913.2513.25
#FFFFFF1.591.0021.0021.00
#00000013.2521.001.001.00
##00000013.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CB49
Deuteranopia (green-blind)
#E5D05E
Tritanopia (blue-blind)
#E5C5B8
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d257;
/* rgb */ color: rgb(215, 210, 87);
/* oklch */ color: oklch(84.4% 0.144 106.9);
Tailwind
colors: {
  custom: {
    50: '#e6df8b',
    500: '#d7d257',
    950: '#000000',
  },
}
SCSS
$custom: #d7d257;
$custom-light: #e6df8b;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d257",
  "rgb": {
    "r": 215,
    "g": 210,
    "b": 87
  },
  "hsl": {
    "h": 57.656,
    "s": 61.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.84447,
    "c": 0.14373,
    "h": 106.9
  },
  "luminance": 0.61228
}

Semantic roles & 50–950 ramp

primary
#D7D257
secondary
#3C3F96
accent
#49E543
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D257

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D7D257 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva