#B9B230#B9B230

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

Color values

HEX#B9B230
RGBrgb(185, 178, 48)
HSLhsl(57, 59%, 46%)
HSVhsv(57, 74%, 73%)
CMYKcmyk(0%, 3.8%, 74.1%, 27.5%)
CIE-LABlab(71.13, -12.23, 62.92)
CIE-LCHlch(71.13, 64.10, 101.00°)
OKLaboklab(74.69% -0.0404 0.1384)
OKLCHoklch(74.69% 0.144 106.3)
XYZxyz(36.4630, 42.3698, 9.0532)
Luminance0.4237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B230 #3037B9
analogous
#B96D30 #B9B230 #7BB930
triadic
#B9B230 #30B9B2 #B230B9
tetradic
#B9B230 #30B96D #3037B9 #B9307B
square
#B9B230 #30B96D #3037B9 #B9307B
split-complementary
#B9B230 #307BB9 #6D30B9
monochromatic
#585417 #888323 #B9B230 #D3CC54 #DFDB84

Accessibility & contrast

On white

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

On black

9.47
#B9B230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B230
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B230#FFFFFF#000000##000000
##B9B2301.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9b230;
/* rgb */ color: rgb(185, 178, 48);
/* oklch */ color: oklch(74.7% 0.144 106.3);
Tailwind
colors: {
  custom: {
    50: '#d2c872',
    500: '#b9b230',
    950: '#000000',
  },
}
SCSS
$custom: #b9b230;
$custom-light: #d2c872;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b230",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 48
  },
  "hsl": {
    "h": 56.934,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74688,
    "c": 0.14419,
    "h": 106.3
  },
  "luminance": 0.42368
}

Semantic roles & 50–950 ramp

primary
#B9B230
secondary
#7C80C9
accent
#4EE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B230

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

Preview Lab → · Contrast checker → · Palette generator →

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