#D0C742#D0C742

#D0C742 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.3% C 0.150 H 105.4°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#D0C742
RGBrgb(208, 199, 66)
HSLhsl(56, 60%, 54%)
HSVhsv(56, 68%, 82%)
CMYKcmyk(0%, 4.3%, 68.3%, 18.4%)
CIE-LABlab(78.84, -12.23, 64.52)
CIE-LCHlch(78.84, 65.67, 100.73°)
OKLaboklab(81.34% -0.0398 0.1442)
OKLCHoklch(81.34% 0.15 105.4)
XYZxyz(47.4211, 54.6518, 13.2041)
Luminance0.5465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C742 #424BD0
analogous
#D08042 #D0C742 #92D042
triadic
#D0C742 #42D0C7 #C742D0
tetradic
#D0C742 #42D080 #424BD0 #D04292
square
#D0C742 #42D080 #424BD0 #D04292
split-complementary
#D0C742 #4292D0 #8042D0
monochromatic
#79741E #AAA22A #D0C742 #DCD673 #E8E4A4

Accessibility & contrast

On white

1.76
#D0C742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#D0C742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C742
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C742#FFFFFF#000000##000000
##D0C7421.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DBC64B
Tritanopia (blue-blind)
#DFBAAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d0c742;
/* rgb */ color: rgb(208, 199, 66);
/* oklch */ color: oklch(81.3% 0.150 105.4);
Tailwind
colors: {
  custom: {
    50: '#e2d77e',
    500: '#d0c742',
    950: '#000000',
  },
}
SCSS
$custom: #d0c742;
$custom-light: #e2d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c742",
  "rgb": {
    "r": 208,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 56.197,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.81339,
    "c": 0.14961,
    "h": 105.4
  },
  "luminance": 0.5465
}

Semantic roles & 50–950 ramp

primary
#D0C742
secondary
#353A81
accent
#4FE344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D0C742

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

Preview Lab → · Contrast checker → · Palette generator →

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