#B9B231#B9B231

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

Color values

HEX#B9B231
RGBrgb(185, 178, 49)
HSLhsl(57, 58%, 46%)
HSVhsv(57, 74%, 73%)
CMYKcmyk(0%, 3.8%, 73.5%, 27.5%)
CIE-LABlab(71.13, -12.19, 62.58)
CIE-LCHlch(71.13, 63.76, 101.02°)
OKLaboklab(74.69% -0.0401 0.1379)
OKLCHoklch(74.69% 0.144 106.2)
XYZxyz(36.4838, 42.3782, 9.1631)
Luminance0.4238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B231 #3138B9
analogous
#B96E31 #B9B231 #7CB931
triadic
#B9B231 #31B9B2 #B231B9
tetradic
#B9B231 #31B96E #3138B9 #B9317C
square
#B9B231 #31B96E #3138B9 #B9317C
split-complementary
#B9B231 #317CB9 #6E31B9
monochromatic
#585517 #898324 #B9B231 #D2CC55 #DFDA86

Accessibility & contrast

On white

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

On black

9.48
#B9B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B231
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B231#FFFFFF#000000##000000
##B9B2311.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9b231;
/* rgb */ color: rgb(185, 178, 49);
/* oklch */ color: oklch(74.7% 0.144 106.2);
Tailwind
colors: {
  custom: {
    50: '#d2c873',
    500: '#b9b231',
    950: '#000000',
  },
}
SCSS
$custom: #b9b231;
$custom-light: #d2c873;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b231",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 56.912,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74695,
    "c": 0.14361,
    "h": 106.2
  },
  "luminance": 0.42377
}

Semantic roles & 50–950 ramp

primary
#B9B231
secondary
#7D81C8
accent
#4EE146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #B9B231

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

Preview Lab → · Contrast checker → · Palette generator →

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