#B9B242#B9B242

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

Color values

HEX#B9B242
RGBrgb(185, 178, 66)
HSLhsl(56, 47%, 49%)
HSVhsv(56, 64%, 73%)
CMYKcmyk(0%, 3.8%, 64.3%, 27.5%)
CIE-LABlab(71.25, -11.27, 56.10)
CIE-LCHlch(71.25, 57.23, 101.36°)
OKLaboklab(74.83% -0.0358 0.1271)
OKLCHoklch(74.83% 0.132 105.7)
XYZxyz(36.9127, 42.5497, 11.4217)
Luminance0.4255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B242 #4249B9
analogous
#B97742 #B9B242 #84B942
triadic
#B9B242 #42B9B2 #B242B9
tetradic
#B9B242 #42B977 #4249B9 #B94284
square
#B9B242 #42B977 #4249B9 #B94284
split-complementary
#B9B242 #4284B9 #7742B9
monochromatic
#5F5B22 #8C8732 #B9B242 #CBC56D #DBD79A

Accessibility & contrast

On white

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

On black

9.51
#B9B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B242
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B242#FFFFFF#000000##000000
##B9B2421.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C4B149
Tritanopia (blue-blind)
#C6A79B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b242;
/* rgb */ color: rgb(185, 178, 66);
/* oklch */ color: oklch(74.8% 0.132 105.7);
Tailwind
colors: {
  custom: {
    50: '#d1c87c',
    500: '#b9b242',
    950: '#000000',
  },
}
SCSS
$custom: #b9b242;
$custom-light: #d1c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b242",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 56.471,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74826,
    "c": 0.13205,
    "h": 105.7
  },
  "luminance": 0.42548
}

Semantic roles & 50–950 ramp

primary
#B9B242
secondary
#9093C7
accent
#59D751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9B242

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

Preview Lab → · Contrast checker → · Palette generator →

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