#D4B22F#D4B22F

#D4B22F is a light, vivid yellow. Relative luminance 0.460; OKLCH L 77.2% C 0.145 H 93.5°. Best body text is #000000 at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#D4B22F
RGBrgb(212, 178, 47)
HSLhsl(48, 66%, 51%)
HSVhsv(48, 78%, 83%)
CMYKcmyk(0%, 16%, 77.8%, 16.9%)
CIE-LABlab(73.58, -0.52, 66.42)
CIE-LCHlch(73.58, 66.42, 90.45°)
OKLaboklab(77.21% -0.0088 0.1445)
OKLCHoklch(77.21% 0.145 93.5)
XYZxyz(43.5873, 46.0457, 9.2807)
Luminance0.4604 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B22F #2F51D4
analogous
#D45F2F #D4B22F #A4D42F
triadic
#D4B22F #2FD4B2 #B22FD4
tetradic
#D4B22F #2FD45F #2F51D4 #D42FA4
square
#D4B22F #2FD45F #2F51D4 #D42FA4
split-complementary
#D4B22F #2FA4D4 #5F2FD4
monochromatic
#715F17 #A48922 #D4B22F #DEC562 #E9D894

Accessibility & contrast

On white

2.06
#D4B22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.21
#D4B22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B22F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B22F#FFFFFF#000000##000000
##D4B22F1.002.0610.2110.21
#FFFFFF2.061.0021.0021.00
#00000010.2121.001.001.00
##00000010.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF12
Deuteranopia (green-blind)
#CEB938
Tritanopia (blue-blind)
#E5A399
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d4b22f;
/* rgb */ color: rgb(212, 178, 47);
/* oklch */ color: oklch(77.2% 0.145 93.5);
Tailwind
colors: {
  custom: {
    50: '#e6c872',
    500: '#d4b22f',
    950: '#000000',
  },
}
SCSS
$custom: #d4b22f;
$custom-light: #e6c872;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b22f",
  "rgb": {
    "r": 212,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 47.636,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77211,
    "c": 0.14481,
    "h": 93.5
  },
  "luminance": 0.46043
}

Semantic roles & 50–950 ramp

primary
#D4B22F
secondary
#8B9AD4
accent
#62E93F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D4B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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