#B9B23B#B9B23B

#B9B23B is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.8% C 0.137 H 106.0°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#B9B23B
RGBrgb(185, 178, 59)
HSLhsl(57, 52%, 48%)
HSVhsv(57, 68%, 73%)
CMYKcmyk(0%, 3.8%, 68.1%, 27.5%)
CIE-LABlab(71.20, -11.69, 58.91)
CIE-LCHlch(71.20, 60.06, 101.22°)
OKLaboklab(74.77% -0.0377 0.1319)
OKLCHoklch(74.77% 0.137 106)
XYZxyz(36.7188, 42.4721, 10.4006)
Luminance0.4247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B23B #3B42B9
analogous
#B9733B #B9B23B #81B93B
triadic
#B9B23B #3BB9B2 #B23BB9
tetradic
#B9B23B #3BB973 #3B42B9 #B93B81
square
#B9B23B #3BB973 #3B42B9 #B93B81
split-complementary
#B9B23B #3B81B9 #733BB9
monochromatic
#5C591D #8B852C #B9B23B #CDC864 #DCD892

Accessibility & contrast

On white

2.21
#B9B23B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.49
#B9B23B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B23B
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B23B#FFFFFF#000000##000000
##B9B23B1.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC2A
Deuteranopia (green-blind)
#C4B143
Tritanopia (blue-blind)
#C6A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b23b;
/* rgb */ color: rgb(185, 178, 59);
/* oklch */ color: oklch(74.8% 0.137 106.0);
Tailwind
colors: {
  custom: {
    50: '#d1c878',
    500: '#b9b23b',
    950: '#000000',
  },
}
SCSS
$custom: #b9b23b;
$custom-light: #d1c878;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b23b",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 59
  },
  "hsl": {
    "h": 56.667,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.74767,
    "c": 0.13719,
    "h": 106
  },
  "luminance": 0.42471
}

Semantic roles & 50–950 ramp

primary
#B9B23B
secondary
#888CC7
accent
#55DB4D
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B9B23B

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

Preview Lab → · Contrast checker → · Palette generator →

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