#B9C840#B9C840

#B9C840 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 79.6% C 0.157 H 115.5°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#B9C840
RGBrgb(185, 200, 64)
HSLhsl(67, 55%, 52%)
HSVhsv(67, 68%, 78%)
CMYKcmyk(7.5%, 0%, 68%, 21.6%)
CIE-LABlab(77.28, -22.47, 63.12)
CIE-LCHlch(77.28, 67.00, 109.59°)
OKLaboklab(79.64% -0.0675 0.1416)
OKLCHoklch(79.64% 0.157 115.5)
XYZxyz(41.5883, 51.9937, 12.6944)
Luminance0.5199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C840 #4F40C8
analogous
#C89340 #B9C840 #75C840
triadic
#B9C840 #40B9C8 #C840B9
tetradic
#B9C840 #40C893 #4F40C8 #C84075
square
#B9C840 #40C893 #4F40C8 #C84075
split-complementary
#B9C840 #4075C8 #9340C8
monochromatic
#656E20 #919D2D #B9C840 #CAD670 #DCE39F

Accessibility & contrast

On white

1.84
#B9C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.40
#B9C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C840
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C840#FFFFFF#000000##000000
##B9C8401.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#C5BDAD
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #b9c840;
/* rgb */ color: rgb(185, 200, 64);
/* oklch */ color: oklch(79.6% 0.157 115.5);
Tailwind
colors: {
  custom: {
    50: '#d1d87d',
    500: '#b9c840',
    950: '#000000',
  },
}
SCSS
$custom: #b9c840;
$custom-light: #d1d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c840",
  "rgb": {
    "r": 185,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 66.618,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.7964,
    "c": 0.15683,
    "h": 115.5
  },
  "luminance": 0.51993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B9C840

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

Preview Lab → · Contrast checker → · Palette generator →

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