#D9B338#D9B338

#D9B338 is a light, vivid yellow. Relative luminance 0.473; OKLCH L 78.0% C 0.141 H 91.0°. Best body text is #000000 at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#D9B338
RGBrgb(217, 179, 56)
HSLhsl(46, 68%, 54%)
HSVhsv(46, 74%, 85%)
CMYKcmyk(0%, 17.5%, 74.2%, 14.9%)
CIE-LABlab(74.37, 1.48, 64.17)
CIE-LCHlch(74.37, 64.19, 88.68°)
OKLaboklab(77.97% -0.0025 0.1413)
OKLCHoklch(77.97% 0.141 91)
XYZxyz(45.4518, 47.2802, 10.4726)
Luminance0.4728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B338 #385ED9
analogous
#D96338 #D9B338 #AED938
triadic
#D9B338 #38D9B3 #B338D9
tetradic
#D9B338 #38D963 #385ED9 #D938AE
square
#D9B338 #38D963 #385ED9 #D938AE
split-complementary
#D9B338 #38AED9 #6338D9
monochromatic
#7E6618 #B29022 #D9B338 #E3C76B #EDDA9F

Accessibility & contrast

On white

2.01
#D9B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.46
#D9B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B338
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B338#FFFFFF#000000##000000
##D9B3381.002.0110.4610.46
#FFFFFF2.011.0021.0021.00
#00000010.4621.001.001.00
##00000010.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B123
Deuteranopia (green-blind)
#D0BB3F
Tritanopia (blue-blind)
#EBA49B
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d9b338;
/* rgb */ color: rgb(217, 179, 56);
/* oklch */ color: oklch(78.0% 0.141 91.0);
Tailwind
colors: {
  custom: {
    50: '#e9c977',
    500: '#d9b338',
    950: '#000000',
  },
}
SCSS
$custom: #d9b338;
$custom-light: #e9c977;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b338",
  "rgb": {
    "r": 217,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 45.839,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77966,
    "c": 0.14133,
    "h": 91
  },
  "luminance": 0.47277
}

Semantic roles & 50–950 ramp

primary
#D9B338
secondary
#94A4D9
accent
#66EB3D
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D9B338

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

Preview Lab → · Contrast checker → · Palette generator →

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