#B9C331#B9C331

#B9C331 is a light, vivid yellow. Relative luminance 0.496; OKLCH L 78.4% C 0.161 H 113.5°. Best body text is #000000 at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#B9C331
RGBrgb(185, 195, 49)
HSLhsl(64, 60%, 48%)
HSVhsv(64, 75%, 76%)
CMYKcmyk(5.1%, 0%, 74.9%, 23.5%)
CIE-LABlab(75.80, -20.76, 66.97)
CIE-LCHlch(75.80, 70.12, 107.22°)
OKLaboklab(78.43% -0.0641 0.1472)
OKLCHoklch(78.43% 0.161 113.5)
XYZxyz(40.0783, 49.5671, 10.3613)
Luminance0.4957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C331 #3B31C3
analogous
#C38431 #B9C331 #70C331
triadic
#B9C331 #31B9C3 #C331B9
tetradic
#B9C331 #31C384 #3B31C3 #C33170
square
#B9C331 #31C384 #3B31C3 #C33170
split-complementary
#B9C331 #3170C3 #8431C3
monochromatic
#5C6118 #8B9225 #B9C331 #CDD65B #DCE28C

Accessibility & contrast

On white

1.92
#B9C331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.91
#B9C331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C331
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C331#FFFFFF#000000##000000
##B9C3311.001.9210.9110.91
#FFFFFF1.921.0021.0021.00
#00000010.9121.001.001.00
##00000010.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2B90D
Deuteranopia (green-blind)
#D1BC3E
Tritanopia (blue-blind)
#C6B7A7
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #b9c331;
/* rgb */ color: rgb(185, 195, 49);
/* oklch */ color: oklch(78.4% 0.161 113.5);
Tailwind
colors: {
  custom: {
    50: '#d2d575',
    500: '#b9c331',
    950: '#000000',
  },
}
SCSS
$custom: #b9c331;
$custom-light: #d2d575;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c331",
  "rgb": {
    "r": 185,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 64.11,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.78429,
    "c": 0.16054,
    "h": 113.5
  },
  "luminance": 0.49566
}

Semantic roles & 50–950 ramp

primary
#B9C331
secondary
#8883CC
accent
#45E350
background
#FDFDF7
surface
#FAFAED
border
#D3D3C8
text
#151409
muted
#83837B

Preview Lab

Preview with #B9C331

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

Preview Lab → · Contrast checker → · Palette generator →

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