#D4BA42#D4BA42

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

Color values

HEX#D4BA42
RGBrgb(212, 186, 66)
HSLhsl(49, 63%, 55%)
HSVhsv(49, 69%, 83%)
CMYKcmyk(0%, 12.3%, 68.9%, 16.9%)
CIE-LABlab(75.77, -3.85, 61.53)
CIE-LCHlch(75.77, 61.65, 93.58°)
OKLaboklab(78.98% -0.0163 0.1378)
OKLCHoklch(78.98% 0.139 96.8)
XYZxyz(45.6959, 49.5105, 12.3028)
Luminance0.4951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4BA42 #425CD4
analogous
#D47142 #D4BA42 #A5D442
triadic
#D4BA42 #42D4BA #BA42D4
tetradic
#D4BA42 #42D471 #425CD4 #D442A5
square
#D4BA42 #42D471 #425CD4 #D442A5
split-complementary
#D4BA42 #42A5D4 #7142D4
monochromatic
#7F6D1D #B19828 #D4BA42 #DFCC74 #EBDEA6

Accessibility & contrast

On white

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

On black

10.90
#D4BA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4BA42
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4BA42#FFFFFF#000000##000000
##D4BA421.001.9310.9010.90
#FFFFFF1.931.0021.0021.00
#00000010.9021.001.001.00
##00000010.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB631
Deuteranopia (green-blind)
#D3BE49
Tritanopia (blue-blind)
#E4ACA2
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d4ba42;
/* rgb */ color: rgb(212, 186, 66);
/* oklch */ color: oklch(79.0% 0.139 96.8);
Tailwind
colors: {
  custom: {
    50: '#e5ce7d',
    500: '#d4ba42',
    950: '#000000',
  },
}
SCSS
$custom: #d4ba42;
$custom-light: #e5ce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4ba42",
  "rgb": {
    "r": 212,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 49.315,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.78983,
    "c": 0.13871,
    "h": 96.8
  },
  "luminance": 0.49508
}

Semantic roles & 50–950 ramp

primary
#D4BA42
secondary
#9AA5D8
accent
#5FE642
background
#FEFCF7
surface
#FDF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4BA42

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

Preview Lab → · Contrast checker → · Palette generator →

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