#B9C040#B9C040

#B9C040 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.9% C 0.148 H 112.4°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#B9C040
RGBrgb(185, 192, 64)
HSLhsl(63, 50%, 50%)
HSVhsv(63, 67%, 75%)
CMYKcmyk(3.6%, 0%, 66.7%, 24.7%)
CIE-LABlab(75.07, -18.51, 60.88)
CIE-LCHlch(75.07, 63.63, 106.91°)
OKLaboklab(77.87% -0.0564 0.1369)
OKLCHoklch(77.87% 0.148 112.4)
XYZxyz(39.7838, 48.3846, 12.0929)
Luminance0.4838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C040 #4740C0
analogous
#C08740 #B9C040 #79C040
triadic
#B9C040 #40B9C0 #C040B9
tetradic
#B9C040 #40C087 #4740C0 #C04079
square
#B9C040 #40C087 #4740C0 #C04079
split-complementary
#B9C040 #4079C0 #8740C0
monochromatic
#616421 #8D9230 #B9C040 #CACF6E #DBDE9C

Accessibility & contrast

On white

1.97
#B9C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.68
#B9C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C040
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C040#FFFFFF#000000##000000
##B9C0401.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB72D
Deuteranopia (green-blind)
#CEBA49
Tritanopia (blue-blind)
#C5B5A6
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b9c040;
/* rgb */ color: rgb(185, 192, 64);
/* oklch */ color: oklch(77.9% 0.148 112.4);
Tailwind
colors: {
  custom: {
    50: '#d1d27c',
    500: '#b9c040',
    950: '#000000',
  },
}
SCSS
$custom: #b9c040;
$custom-light: #d1d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c040",
  "rgb": {
    "r": 185,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 63.281,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77869,
    "c": 0.14803,
    "h": 112.4
  },
  "luminance": 0.48384
}

Semantic roles & 50–950 ramp

primary
#B9C040
secondary
#9491CB
accent
#4EDA56
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B9C040

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

Preview Lab → · Contrast checker → · Palette generator →

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