#D7BF40#D7BF40

#D7BF40 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.3% C 0.144 H 98.3°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#D7BF40
RGBrgb(215, 191, 64)
HSLhsl(50, 65%, 55%)
HSVhsv(50, 70%, 84%)
CMYKcmyk(0%, 11.2%, 70.2%, 15.7%)
CIE-LABlab(77.33, -5.27, 63.98)
CIE-LCHlch(77.33, 64.20, 94.71°)
OKLaboklab(80.28% -0.0207 0.1425)
OKLCHoklch(80.28% 0.144 98.3)
XYZxyz(47.5828, 52.0812, 12.3958)
Luminance0.5208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BF40 #4058D7
analogous
#D77440 #D7BF40 #A3D740
triadic
#D7BF40 #40D7BF #BF40D7
tetradic
#D7BF40 #40D774 #4058D7 #D740A3
square
#D7BF40 #40D774 #4058D7 #D740A3
split-complementary
#D7BF40 #40A3D7 #7440D7
monochromatic
#81711B #B49D26 #D7BF40 #E2D073 #ECE1A5

Accessibility & contrast

On white

1.84
#D7BF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#D7BF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BF40
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BF40#FFFFFF#000000##000000
##D7BF401.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA2D
Deuteranopia (green-blind)
#D8C348
Tritanopia (blue-blind)
#E8B1A6
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d7bf40;
/* rgb */ color: rgb(215, 191, 64);
/* oklch */ color: oklch(80.3% 0.144 98.3);
Tailwind
colors: {
  custom: {
    50: '#e7d17c',
    500: '#d7bf40',
    950: '#000000',
  },
}
SCSS
$custom: #d7bf40;
$custom-light: #e7d17c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7bf40",
  "rgb": {
    "r": 215,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 50.464,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.8028,
    "c": 0.14397,
    "h": 98.3
  },
  "luminance": 0.52079
}

Semantic roles & 50–950 ramp

primary
#D7BF40
secondary
#334088
accent
#5AE83F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D7BF40

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

Preview Lab → · Contrast checker → · Palette generator →

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