#D7BF4F#D7BF4F

#D7BF4F is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.4% C 0.133 H 97.2°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#D7BF4F
RGBrgb(215, 191, 79)
HSLhsl(49, 63%, 58%)
HSVhsv(49, 63%, 84%)
CMYKcmyk(0%, 11.2%, 63.3%, 15.7%)
CIE-LABlab(77.45, -4.42, 57.92)
CIE-LCHlch(77.45, 58.09, 94.36°)
OKLaboklab(80.41% -0.0166 0.1321)
OKLCHoklch(80.41% 0.133 97.2)
XYZxyz(48.0685, 52.2755, 14.9539)
Luminance0.5227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BF4F #4F67D7
analogous
#D77B4F #D7BF4F #ABD74F
triadic
#D7BF4F #4FD7BF #BF4FD7
tetradic
#D7BF4F #4FD77B #4F67D7 #D74FAB
square
#D7BF4F #4FD77B #4F67D7 #D74FAB
split-complementary
#D7BF4F #4FABD7 #7B4FD7
monochromatic
#8C7920 #BEA42B #D7BF4F #E2D181 #EEE3B3

Accessibility & contrast

On white

1.83
#D7BF4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#D7BF4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BF4F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BF4F#FFFFFF#000000##000000
##D7BF4F1.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB42
Deuteranopia (green-blind)
#D7C355
Tritanopia (blue-blind)
#E7B2A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d7bf4f;
/* rgb */ color: rgb(215, 191, 79);
/* oklch */ color: oklch(80.4% 0.133 97.2);
Tailwind
colors: {
  custom: {
    50: '#e7d285',
    500: '#d7bf4f',
    950: '#000000',
  },
}
SCSS
$custom: #d7bf4f;
$custom-light: #e7d285;
$custom-dark: #000000;
JSON
{
  "hex": "#d7bf4f",
  "rgb": {
    "r": 215,
    "g": 191,
    "b": 79
  },
  "hsl": {
    "h": 49.412,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80409,
    "c": 0.13312,
    "h": 97.2
  },
  "luminance": 0.52273
}

Semantic roles & 50–950 ramp

primary
#D7BF4F
secondary
#394892
accent
#5FE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7BF4F

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

Preview Lab → · Contrast checker → · Palette generator →

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