#B9B238#B9B238

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

Color values

HEX#B9B238
RGBrgb(185, 178, 56)
HSLhsl(57, 54%, 47%)
HSVhsv(57, 70%, 73%)
CMYKcmyk(0%, 3.8%, 69.7%, 27.5%)
CIE-LABlab(71.17, -11.85, 60.06)
CIE-LCHlch(71.17, 61.22, 101.16°)
OKLaboklab(74.74% -0.0385 0.1338)
OKLCHoklch(74.74% 0.139 106.1)
XYZxyz(36.6432, 42.4419, 10.0025)
Luminance0.4244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B238 #383FB9
analogous
#B97138 #B9B238 #80B938
triadic
#B9B238 #38B9B2 #B238B9
tetradic
#B9B238 #38B971 #383FB9 #B93880
square
#B9B238 #38B971 #383FB9 #B93880
split-complementary
#B9B238 #3880B9 #7138B9
monochromatic
#5B581C #8A852A #B9B238 #CFC95F #DDD98E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B238#FFFFFF#000000##000000
##B9B2381.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)
#C1AB25
Deuteranopia (green-blind)
#C4B140
Tritanopia (blue-blind)
#C6A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b238;
/* rgb */ color: rgb(185, 178, 56);
/* oklch */ color: oklch(74.7% 0.139 106.1);
Tailwind
colors: {
  custom: {
    50: '#d1c876',
    500: '#b9b238',
    950: '#000000',
  },
}
SCSS
$custom: #b9b238;
$custom-light: #d1c876;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b238",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 56.744,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.74744,
    "c": 0.13924,
    "h": 106.1
  },
  "luminance": 0.42441
}

Semantic roles & 50–950 ramp

primary
#B9B238
secondary
#8589C8
accent
#53DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B9B238

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

Preview Lab → · Contrast checker → · Palette generator →

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