#D7D940#D7D940

#D7D940 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 85.7% C 0.167 H 110.2°. Best body text is #000000 at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#D7D940
RGBrgb(215, 217, 64)
HSLhsl(61, 67%, 55%)
HSVhsv(61, 71%, 85%)
CMYKcmyk(0.9%, 0%, 70.5%, 14.9%)
CIE-LABlab(84.20, -18.37, 70.72)
CIE-LCHlch(84.20, 73.07, 104.56°)
OKLaboklab(85.75% -0.0577 0.1567)
OKLCHoklch(85.75% 0.167 110.2)
XYZxyz(53.7645, 64.4445, 14.4564)
Luminance0.6444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D940 #4240D9
analogous
#D98E40 #D7D940 #8BD940
triadic
#D7D940 #40D7D9 #D940D7
tetradic
#D7D940 #40D98E #4240D9 #D9408B
square
#D7D940 #40D98E #4240D9 #D9408B
split-complementary
#D7D940 #408BD9 #8E40D9
monochromatic
#83841A #B5B724 #D7D940 #E2E373 #ECEDA6

Accessibility & contrast

On white

1.51
#D7D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.89
#D7D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D940
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D940#FFFFFF#000000##000000
##D7D9401.001.5113.8913.89
#FFFFFF1.511.0021.0021.00
#00000013.8921.001.001.00
##00000013.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD024
Deuteranopia (green-blind)
#ECD44C
Tritanopia (blue-blind)
#E6CBBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d940;
/* rgb */ color: rgb(215, 217, 64);
/* oklch */ color: oklch(85.7% 0.167 110.2);
Tailwind
colors: {
  custom: {
    50: '#e7e47f',
    500: '#d7d940',
    950: '#000000',
  },
}
SCSS
$custom: #d7d940;
$custom-light: #e7e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d940",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 60.784,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85745,
    "c": 0.167,
    "h": 110.2
  },
  "luminance": 0.64443
}

Semantic roles & 50–950 ramp

primary
#D7D940
secondary
#34328B
accent
#3EEA40
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D940

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

Preview Lab → · Contrast checker → · Palette generator →

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