#D7C34F#D7C34F

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

Color values

HEX#D7C34F
RGBrgb(215, 195, 79)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 63%, 84%)
CMYKcmyk(0%, 9.3%, 63.3%, 15.7%)
CIE-LABlab(78.49, -6.48, 59.05)
CIE-LCHlch(78.49, 59.40, 96.27°)
OKLaboklab(81.23% -0.0225 0.1345)
OKLCHoklch(81.23% 0.136 99.5)
XYZxyz(48.9528, 54.0439, 15.2486)
Luminance0.5404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C34F #4F63D7
analogous
#D77F4F #D7C34F #A7D74F
triadic
#D7C34F #4FD7C3 #C34FD7
tetradic
#D7C34F #4FD77F #4F63D7 #D74FA7
square
#D7C34F #4FD77F #4F63D7 #D74FA7
split-complementary
#D7C34F #4FA7D7 #7F4FD7
monochromatic
#8C7C20 #BEA82B #D7C34F #E2D481 #EEE5B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C34F#FFFFFF#000000##000000
##D7C34F1.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)
#D5BE41
Deuteranopia (green-blind)
#DAC555
Tritanopia (blue-blind)
#E7B6AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c34f;
/* rgb */ color: rgb(215, 195, 79);
/* oklch */ color: oklch(81.2% 0.136 99.5);
Tailwind
colors: {
  custom: {
    50: '#e6d485',
    500: '#d7c34f',
    950: '#000000',
  },
}
SCSS
$custom: #d7c34f;
$custom-light: #e6d485;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c34f",
  "rgb": {
    "r": 215,
    "g": 195,
    "b": 79
  },
  "hsl": {
    "h": 51.176,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81234,
    "c": 0.13634,
    "h": 99.5
  },
  "luminance": 0.54042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7C34F

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

Preview Lab → · Contrast checker → · Palette generator →

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