#D9B238#D9B238

#D9B238 is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.8% C 0.141 H 90.4°. Best body text is #000000 at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#D9B238
RGBrgb(217, 178, 56)
HSLhsl(45, 68%, 54%)
HSVhsv(45, 74%, 85%)
CMYKcmyk(0%, 18%, 74.2%, 14.9%)
CIE-LABlab(74.11, 2.00, 63.93)
CIE-LCHlch(74.11, 63.96, 88.20°)
OKLaboklab(77.77% -0.0009 0.1408)
OKLCHoklch(77.77% 0.141 90.4)
XYZxyz(45.2521, 46.8809, 10.4061)
Luminance0.4688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B238 #385FD9
analogous
#D96138 #D9B238 #AFD938
triadic
#D9B238 #38D9B2 #B238D9
tetradic
#D9B238 #38D961 #385FD9 #D938AF
square
#D9B238 #38D961 #385FD9 #D938AF
split-complementary
#D9B238 #38AFD9 #6138D9
monochromatic
#7E6618 #B28F22 #D9B238 #E3C66B #EDDA9F

Accessibility & contrast

On white

2.02
#D9B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.38
#D9B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B238
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B238#FFFFFF#000000##000000
##D9B2381.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B024
Deuteranopia (green-blind)
#D0BB3F
Tritanopia (blue-blind)
#EBA39A
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d9b238;
/* rgb */ color: rgb(217, 178, 56);
/* oklch */ color: oklch(77.8% 0.141 90.4);
Tailwind
colors: {
  custom: {
    50: '#e9c877',
    500: '#d9b238',
    950: '#000000',
  },
}
SCSS
$custom: #d9b238;
$custom-light: #e9c877;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b238",
  "rgb": {
    "r": 217,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 45.466,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77765,
    "c": 0.14079,
    "h": 90.4
  },
  "luminance": 0.46878
}

Semantic roles & 50–950 ramp

primary
#D9B238
secondary
#94A5D9
accent
#67EB3D
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D9B238

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

Preview Lab → · Contrast checker → · Palette generator →

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