#D7C34E#D7C34E

#D7C34E is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.2% C 0.137 H 99.6°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#D7C34E
RGBrgb(215, 195, 78)
HSLhsl(51, 63%, 57%)
HSVhsv(51, 64%, 84%)
CMYKcmyk(0%, 9.3%, 63.7%, 15.7%)
CIE-LABlab(78.48, -6.55, 59.47)
CIE-LCHlch(78.48, 59.83, 96.28°)
OKLaboklab(81.23% -0.0228 0.1352)
OKLCHoklch(81.23% 0.137 99.6)
XYZxyz(48.9166, 54.0295, 15.0583)
Luminance0.5403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C34E #4E62D7
analogous
#D77F4E #D7C34E #A6D74E
triadic
#D7C34E #4ED7C3 #C34ED7
tetradic
#D7C34E #4ED77F #4E62D7 #D74EA6
square
#D7C34E #4ED77F #4E62D7 #D74EA6
split-complementary
#D7C34E #4EA6D7 #7F4ED7
monochromatic
#8B7B1F #BDA82B #D7C34E #E2D480 #EEE5B2

Accessibility & contrast

On white

1.78
#D7C34E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#D7C34E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C34E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C34E#FFFFFF#000000##000000
##D7C34E1.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE40
Deuteranopia (green-blind)
#DAC554
Tritanopia (blue-blind)
#E7B6AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c34e;
/* rgb */ color: rgb(215, 195, 78);
/* oklch */ color: oklch(81.2% 0.137 99.6);
Tailwind
colors: {
  custom: {
    50: '#e7d485',
    500: '#d7c34e',
    950: '#000000',
  },
}
SCSS
$custom: #d7c34e;
$custom-light: #e7d485;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c34e",
  "rgb": {
    "r": 215,
    "g": 195,
    "b": 78
  },
  "hsl": {
    "h": 51.241,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81225,
    "c": 0.13712,
    "h": 99.6
  },
  "luminance": 0.54027
}

Semantic roles & 50–950 ramp

primary
#D7C34E
secondary
#384591
accent
#5AE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C34E

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

Preview Lab → · Contrast checker → · Palette generator →

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