#B9B338#B9B338

#B9B338 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 75.0% C 0.140 H 106.6°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#B9B338
RGBrgb(185, 179, 56)
HSLhsl(57, 54%, 47%)
HSVhsv(57, 70%, 73%)
CMYKcmyk(0%, 3.2%, 69.7%, 27.5%)
CIE-LABlab(71.45, -12.36, 60.33)
CIE-LCHlch(71.45, 61.58, 101.58°)
OKLaboklab(74.96% -0.04 0.1344)
OKLCHoklch(74.96% 0.14 106.6)
XYZxyz(36.8429, 42.8413, 10.0691)
Luminance0.4284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B338 #383EB9
analogous
#B97238 #B9B338 #7FB938
triadic
#B9B338 #38B9B3 #B338B9
tetradic
#B9B338 #38B972 #383EB9 #B9387F
square
#B9B338 #38B972 #383EB9 #B9387F
split-complementary
#B9B338 #387FB9 #7238B9
monochromatic
#5B581C #8A862A #B9B338 #CFCA5F #DDD98E

Accessibility & contrast

On white

2.19
#B9B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#B9B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B338
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B338#FFFFFF#000000##000000
##B9B3381.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC24
Deuteranopia (green-blind)
#C5B140
Tritanopia (blue-blind)
#C6A79B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b9b338;
/* rgb */ color: rgb(185, 179, 56);
/* oklch */ color: oklch(75.0% 0.140 106.6);
Tailwind
colors: {
  custom: {
    50: '#d1c976',
    500: '#b9b338',
    950: '#000000',
  },
}
SCSS
$custom: #b9b338;
$custom-light: #d1c976;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b338",
  "rgb": {
    "r": 185,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 57.209,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.74961,
    "c": 0.1402,
    "h": 106.6
  },
  "luminance": 0.4284
}

Semantic roles & 50–950 ramp

primary
#B9B338
secondary
#8588C8
accent
#52DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B9B338

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

Preview Lab → · Contrast checker → · Palette generator →

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