#B9B23A#B9B23A

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

Color values

HEX#B9B23A
RGBrgb(185, 178, 58)
HSLhsl(57, 52%, 48%)
HSVhsv(57, 69%, 73%)
CMYKcmyk(0%, 3.8%, 68.6%, 27.5%)
CIE-LABlab(71.19, -11.74, 59.30)
CIE-LCHlch(71.19, 60.45, 101.20°)
OKLaboklab(74.76% -0.038 0.1326)
OKLCHoklch(74.76% 0.138 106)
XYZxyz(36.6931, 42.4619, 10.2653)
Luminance0.4246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B23A #3A41B9
analogous
#B9733A #B9B23A #80B93A
triadic
#B9B23A #3AB9B2 #B23AB9
tetradic
#B9B23A #3AB973 #3A41B9 #B93A80
square
#B9B23A #3AB973 #3A41B9 #B93A80
split-complementary
#B9B23A #3A80B9 #733AB9
monochromatic
#5C581D #8A852B #B9B23A #CEC862 #DCD891

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B23A#FFFFFF#000000##000000
##B9B23A1.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)
#C1AB28
Deuteranopia (green-blind)
#C4B142
Tritanopia (blue-blind)
#C6A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b23a;
/* rgb */ color: rgb(185, 178, 58);
/* oklch */ color: oklch(74.8% 0.138 106.0);
Tailwind
colors: {
  custom: {
    50: '#d1c877',
    500: '#b9b23a',
    950: '#000000',
  },
}
SCSS
$custom: #b9b23a;
$custom-light: #d1c877;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b23a",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 56.693,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.74759,
    "c": 0.13789,
    "h": 106
  },
  "luminance": 0.42461
}

Semantic roles & 50–950 ramp

primary
#B9B23A
secondary
#878BC7
accent
#54DC4C
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B9B23A

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

Preview Lab → · Contrast checker → · Palette generator →

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