#D4BA3F#D4BA3F

#D4BA3F is a light, vivid yellow. Relative luminance 0.495; OKLCH L 79.0% C 0.141 H 97.0°. Best body text is #000000 at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#D4BA3F
RGBrgb(212, 186, 63)
HSLhsl(50, 63%, 54%)
HSVhsv(50, 70%, 83%)
CMYKcmyk(0%, 12.3%, 70.3%, 16.9%)
CIE-LABlab(75.75, -4.01, 62.70)
CIE-LCHlch(75.75, 62.83, 93.66°)
OKLaboklab(78.96% -0.0171 0.1397)
OKLCHoklch(78.96% 0.141 97)
XYZxyz(45.6097, 49.4761, 11.8491)
Luminance0.4947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4BA3F #3F59D4
analogous
#D4703F #D4BA3F #A4D43F
triadic
#D4BA3F #3FD4BA #BA3FD4
tetradic
#D4BA3F #3FD470 #3F59D4 #D43FA4
square
#D4BA3F #3FD470 #3F59D4 #D43FA4
split-complementary
#D4BA3F #3FA4D4 #703FD4
monochromatic
#7D6C1C #AF9727 #D4BA3F #DFCC71 #EADEA3

Accessibility & contrast

On white

1.93
#D4BA3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.89
#D4BA3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4BA3F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4BA3F#FFFFFF#000000##000000
##D4BA3F1.001.9310.8910.89
#FFFFFF1.931.0021.0021.00
#00000010.8921.001.001.00
##00000010.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB62D
Deuteranopia (green-blind)
#D3BE46
Tritanopia (blue-blind)
#E5ACA1
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d4ba3f;
/* rgb */ color: rgb(212, 186, 63);
/* oklch */ color: oklch(79.0% 0.141 97.0);
Tailwind
colors: {
  custom: {
    50: '#e5ce7b',
    500: '#d4ba3f',
    950: '#000000',
  },
}
SCSS
$custom: #d4ba3f;
$custom-light: #e5ce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4ba3f",
  "rgb": {
    "r": 212,
    "g": 186,
    "b": 63
  },
  "hsl": {
    "h": 49.53,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.78959,
    "c": 0.14073,
    "h": 97
  },
  "luminance": 0.49474
}

Semantic roles & 50–950 ramp

primary
#D4BA3F
secondary
#98A3D7
accent
#5EE641
background
#FEFCF7
surface
#FDF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4BA3F

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

Preview Lab → · Contrast checker → · Palette generator →

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