#B9C940#B9C940

#B9C940 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 79.9% C 0.158 H 115.8°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#B9C940
RGBrgb(185, 201, 64)
HSLhsl(67, 56%, 52%)
HSVhsv(67, 68%, 79%)
CMYKcmyk(8%, 0%, 68.2%, 21.2%)
CIE-LABlab(77.55, -22.96, 63.40)
CIE-LCHlch(77.55, 67.43, 109.90°)
OKLaboklab(79.86% -0.0688 0.1422)
OKLCHoklch(79.86% 0.158 115.8)
XYZxyz(41.8207, 52.4584, 12.7719)
Luminance0.5246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C940 #5040C9
analogous
#C99440 #B9C940 #75C940
triadic
#B9C940 #40B9C9 #C940B9
tetradic
#B9C940 #40C994 #5040C9 #C94075
square
#B9C940 #40C994 #5040C9 #C94075
split-complementary
#B9C940 #4075C9 #9440C9
monochromatic
#666F1F #929F2D #B9C940 #CAD670 #DCE49F

Accessibility & contrast

On white

1.83
#B9C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#B9C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C940
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C940#FFFFFF#000000##000000
##B9C9401.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#C4BEAE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #b9c940;
/* rgb */ color: rgb(185, 201, 64);
/* oklch */ color: oklch(79.9% 0.158 115.8);
Tailwind
colors: {
  custom: {
    50: '#d1d97d',
    500: '#b9c940',
    950: '#000000',
  },
}
SCSS
$custom: #b9c940;
$custom-light: #d1d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c940",
  "rgb": {
    "r": 185,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 67.007,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79862,
    "c": 0.15795,
    "h": 115.8
  },
  "luminance": 0.52458
}

Semantic roles & 50–950 ramp

primary
#B9C940
secondary
#3D3578
accent
#49DF5A
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B9C940

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

Preview Lab → · Contrast checker → · Palette generator →

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