#D5C742#D5C742

#D5C742 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.149 H 103.2°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#D5C742
RGBrgb(213, 199, 66)
HSLhsl(54, 64%, 55%)
HSVhsv(54, 69%, 84%)
CMYKcmyk(0%, 6.6%, 69%, 16.5%)
CIE-LABlab(79.26, -10.12, 65.09)
CIE-LCHlch(79.26, 65.87, 98.83°)
OKLaboklab(81.78% -0.0342 0.1452)
OKLCHoklch(81.78% 0.149 103.2)
XYZxyz(48.8494, 55.3883, 13.2711)
Luminance0.5539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C742 #4250D5
analogous
#D57E42 #D5C742 #99D542
triadic
#D5C742 #42D5C7 #C742D5
tetradic
#D5C742 #42D57E #4250D5 #D54299
square
#D5C742 #42D57E #4250D5 #D54299
split-complementary
#D5C742 #4299D5 #7E42D5
monochromatic
#80771C #B2A528 #D5C742 #E0D674 #EBE5A6

Accessibility & contrast

On white

1.74
#D5C742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#D5C742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C742
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C742#FFFFFF#000000##000000
##D5C7421.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DDC74B
Tritanopia (blue-blind)
#E5B9AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d5c742;
/* rgb */ color: rgb(213, 199, 66);
/* oklch */ color: oklch(81.8% 0.149 103.2);
Tailwind
colors: {
  custom: {
    50: '#e6d77e',
    500: '#d5c742',
    950: '#000000',
  },
}
SCSS
$custom: #d5c742;
$custom-light: #e6d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c742",
  "rgb": {
    "r": 213,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 54.286,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81778,
    "c": 0.14919,
    "h": 103.2
  },
  "luminance": 0.55386
}

Semantic roles & 50–950 ramp

primary
#D5C742
secondary
#343C87
accent
#51E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C742

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

Preview Lab → · Contrast checker → · Palette generator →

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