#D4BA4F#D4BA4F

#D4BA4F is a light, vivid yellow. Relative luminance 0.497; OKLCH L 79.1% C 0.129 H 95.6°. Best body text is #000000 at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#D4BA4F
RGBrgb(212, 186, 79)
HSLhsl(48, 61%, 57%)
HSVhsv(48, 63%, 83%)
CMYKcmyk(0%, 12.3%, 62.7%, 16.9%)
CIE-LABlab(75.87, -3.09, 56.14)
CIE-LCHlch(75.87, 56.22, 93.15°)
OKLaboklab(79.1% -0.0126 0.1284)
OKLCHoklch(79.1% 0.129 95.6)
XYZxyz(46.1236, 49.6816, 14.5557)
Luminance0.4968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4BA4F #4F69D4
analogous
#D4784F #D4BA4F #ABD44F
triadic
#D4BA4F #4FD4BA #BA4FD4
tetradic
#D4BA4F #4FD478 #4F69D4 #D44FAB
square
#D4BA4F #4FD478 #4F69D4 #D44FAB
split-complementary
#D4BA4F #4FABD4 #784FD4
monochromatic
#877321 #B99D2D #D4BA4F #E0CD80 #ECE1B1

Accessibility & contrast

On white

1.92
#D4BA4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.94
#D4BA4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4BA4F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4BA4F#FFFFFF#000000##000000
##D4BA4F1.001.9210.9410.94
#FFFFFF1.921.0021.0021.00
#00000010.9421.001.001.00
##00000010.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB643
Deuteranopia (green-blind)
#D2BF54
Tritanopia (blue-blind)
#E4ADA3
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d4ba4f;
/* rgb */ color: rgb(212, 186, 79);
/* oklch */ color: oklch(79.1% 0.129 95.6);
Tailwind
colors: {
  custom: {
    50: '#e4ce85',
    500: '#d4ba4f',
    950: '#000000',
  },
}
SCSS
$custom: #d4ba4f;
$custom-light: #e4ce85;
$custom-dark: #000000;
JSON
{
  "hex": "#d4ba4f",
  "rgb": {
    "r": 212,
    "g": 186,
    "b": 79
  },
  "hsl": {
    "h": 48.271,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.791,
    "c": 0.12899,
    "h": 95.6
  },
  "luminance": 0.49679
}

Semantic roles & 50–950 ramp

primary
#D4BA4F
secondary
#A4AFDA
accent
#63E444
background
#FEFCF8
surface
#FDF9EF
border
#D5D2CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D4BA4F

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

Preview Lab → · Contrast checker → · Palette generator →

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