#D7D342#D7D342

#D7D342 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 84.5% C 0.160 H 107.8°. Best body text is #000000 at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#D7D342
RGBrgb(215, 211, 66)
HSLhsl(58, 65%, 55%)
HSVhsv(58, 69%, 84%)
CMYKcmyk(0%, 1.9%, 69.3%, 15.7%)
CIE-LABlab(82.61, -15.31, 68.46)
CIE-LCHlch(82.61, 70.15, 102.60°)
OKLaboklab(84.48% -0.0489 0.1523)
OKLCHoklch(84.48% 0.16 107.8)
XYZxyz(52.3039, 61.4307, 14.2553)
Luminance0.6143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D342 #4246D7
analogous
#D78842 #D7D342 #91D742
triadic
#D7D342 #42D7D3 #D342D7
tetradic
#D7D342 #42D788 #4246D7 #D74291
square
#D7D342 #42D788 #4246D7 #D74291
split-complementary
#D7D342 #4291D7 #8842D7
monochromatic
#83801C #B5B226 #D7D342 #E2DF75 #ECEBA7

Accessibility & contrast

On white

1.58
#D7D342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.29
#D7D342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D342
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D342#FFFFFF#000000##000000
##D7D3421.001.5813.2913.29
#FFFFFF1.581.0021.0021.00
#00000013.2921.001.001.00
##00000013.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB2A
Deuteranopia (green-blind)
#E7D04C
Tritanopia (blue-blind)
#E6C5B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d7d342;
/* rgb */ color: rgb(215, 211, 66);
/* oklch */ color: oklch(84.5% 0.160 107.8);
Tailwind
colors: {
  custom: {
    50: '#e7e07f',
    500: '#d7d342',
    950: '#000000',
  },
}
SCSS
$custom: #d7d342;
$custom-light: #e7e07f;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d342",
  "rgb": {
    "r": 215,
    "g": 211,
    "b": 66
  },
  "hsl": {
    "h": 58.389,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84482,
    "c": 0.15994,
    "h": 107.8
  },
  "luminance": 0.61429
}

Semantic roles & 50–950 ramp

primary
#D7D342
secondary
#34368A
accent
#44E840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D342

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

Preview Lab → · Contrast checker → · Palette generator →

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