#B9B22D#B9B22D

#B9B22D is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.7% C 0.146 H 106.3°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#B9B22D
RGBrgb(185, 178, 45)
HSLhsl(57, 61%, 45%)
HSVhsv(57, 76%, 73%)
CMYKcmyk(0%, 3.8%, 75.7%, 27.5%)
CIE-LABlab(71.11, -12.36, 63.92)
CIE-LCHlch(71.11, 65.10, 100.94°)
OKLaboklab(74.67% -0.041 0.14)
OKLCHoklch(74.67% 0.146 106.3)
XYZxyz(36.4031, 42.3459, 8.7381)
Luminance0.4234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B22D #2D34B9
analogous
#B96C2D #B9B22D #7AB92D
triadic
#B9B22D #2DB9B2 #B22DB9
tetradic
#B9B22D #2DB96C #2D34B9 #B92D7A
square
#B9B22D #2DB96C #2D34B9 #B92D7A
split-complementary
#B9B22D #2D7AB9 #6C2DB9
monochromatic
#575315 #888321 #B9B22D #D4CE4F #E0DB80

Accessibility & contrast

On white

2.22
#B9B22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#B9B22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B22D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B22D#FFFFFF#000000##000000
##B9B22D1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB0E
Deuteranopia (green-blind)
#C5B037
Tritanopia (blue-blind)
#C7A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b22d;
/* rgb */ color: rgb(185, 178, 45);
/* oklch */ color: oklch(74.7% 0.146 106.3);
Tailwind
colors: {
  custom: {
    50: '#d2c871',
    500: '#b9b22d',
    950: '#000000',
  },
}
SCSS
$custom: #b9b22d;
$custom-light: #d2c871;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b22d",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 57,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.7467,
    "c": 0.14586,
    "h": 106.3
  },
  "luminance": 0.42345
}

Semantic roles & 50–950 ramp

primary
#B9B22D
secondary
#797DC9
accent
#4CE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B22D

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

Preview Lab → · Contrast checker → · Palette generator →

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