#B9B22E#B9B22E

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

Color values

HEX#B9B22E
RGBrgb(185, 178, 46)
HSLhsl(57, 60%, 45%)
HSVhsv(57, 75%, 73%)
CMYKcmyk(0%, 3.8%, 75.1%, 27.5%)
CIE-LABlab(71.11, -12.32, 63.59)
CIE-LCHlch(71.11, 64.77, 100.96°)
OKLaboklab(74.68% -0.0408 0.1395)
OKLCHoklch(74.68% 0.145 106.3)
XYZxyz(36.4226, 42.3537, 8.8407)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B22E #2E35B9
analogous
#B96C2E #B9B22E #7BB92E
triadic
#B9B22E #2EB9B2 #B22EB9
tetradic
#B9B22E #2EB96C #2E35B9 #B92E7B
square
#B9B22E #2EB96C #2E35B9 #B92E7B
split-complementary
#B9B22E #2E7BB9 #6C2EB9
monochromatic
#575416 #888322 #B9B22E #D4CD51 #E0DB82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B22E#FFFFFF#000000##000000
##B9B22E1.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)
#C2AB11
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#C7A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b22e;
/* rgb */ color: rgb(185, 178, 46);
/* oklch */ color: oklch(74.7% 0.145 106.3);
Tailwind
colors: {
  custom: {
    50: '#d2c871',
    500: '#b9b22e',
    950: '#000000',
  },
}
SCSS
$custom: #b9b22e;
$custom-light: #d2c871;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b22e",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 46
  },
  "hsl": {
    "h": 56.978,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74676,
    "c": 0.14532,
    "h": 106.3
  },
  "luminance": 0.42352
}

Semantic roles & 50–950 ramp

primary
#B9B22E
secondary
#7A7EC9
accent
#4CE344
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B22E

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

Preview Lab → · Contrast checker → · Palette generator →

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