#B9C338#B9C338

#B9C338 is a light, vivid yellow. Relative luminance 0.496; OKLCH L 78.5% C 0.157 H 113.6°. Best body text is #000000 at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#B9C338
RGBrgb(185, 195, 56)
HSLhsl(64, 55%, 49%)
HSVhsv(64, 71%, 76%)
CMYKcmyk(5.1%, 0%, 71.3%, 23.5%)
CIE-LABlab(75.84, -20.44, 64.64)
CIE-LCHlch(75.84, 67.79, 107.55°)
OKLaboklab(78.47% -0.0626 0.1435)
OKLCHoklch(78.47% 0.157 113.6)
XYZxyz(40.2377, 49.6309, 11.2007)
Luminance0.4963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C338 #4238C3
analogous
#C38838 #B9C338 #73C338
triadic
#B9C338 #38B9C3 #C338B9
tetradic
#B9C338 #38C388 #4238C3 #C33873
square
#B9C338 #38C388 #4238C3 #C33873
split-complementary
#B9C338 #3873C3 #8838C3
monochromatic
#5F641D #8C932A #B9C338 #CBD365 #DBE195

Accessibility & contrast

On white

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

On black

10.93
#B9C338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C338
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C338#FFFFFF#000000##000000
##B9C3381.001.9210.9310.93
#FFFFFF1.921.0021.0021.00
#00000010.9321.001.001.00
##00000010.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA1F
Deuteranopia (green-blind)
#D1BC43
Tritanopia (blue-blind)
#C5B7A8
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #b9c338;
/* rgb */ color: rgb(185, 195, 56);
/* oklch */ color: oklch(78.5% 0.157 113.6);
Tailwind
colors: {
  custom: {
    50: '#d1d578',
    500: '#b9c338',
    950: '#000000',
  },
}
SCSS
$custom: #b9c338;
$custom-light: #d1d578;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c338",
  "rgb": {
    "r": 185,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 64.317,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.78473,
    "c": 0.15651,
    "h": 113.6
  },
  "luminance": 0.4963
}

Semantic roles & 50–950 ramp

primary
#B9C338
secondary
#908BCC
accent
#49DF54
background
#FDFDF7
surface
#FAFAEE
border
#D3D3C9
text
#141409
muted
#83837B

Preview Lab

Preview with #B9C338

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

Preview Lab → · Contrast checker → · Palette generator →

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