#B9C842#B9C842

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

Color values

HEX#B9C842
RGBrgb(185, 200, 66)
HSLhsl(67, 55%, 52%)
HSVhsv(67, 67%, 78%)
CMYKcmyk(7.5%, 0%, 67%, 21.6%)
CIE-LABlab(77.29, -22.35, 62.37)
CIE-LCHlch(77.29, 66.25, 109.72°)
OKLaboklab(79.66% -0.0669 0.1403)
OKLCHoklch(79.66% 0.155 115.5)
XYZxyz(41.6462, 52.0168, 12.9996)
Luminance0.5202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C842 #5142C8
analogous
#C89442 #B9C842 #76C842
triadic
#B9C842 #42B9C8 #C842B9
tetradic
#B9C842 #42C894 #5142C8 #C84276
square
#B9C842 #42C894 #5142C8 #C84276
split-complementary
#B9C842 #4276C8 #9442C8
monochromatic
#666F20 #929F2E #B9C842 #CBD671 #DCE4A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9C842#FFFFFF#000000##000000
##B9C8421.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)
#D6BE2E
Deuteranopia (green-blind)
#D5C04C
Tritanopia (blue-blind)
#C4BDAD
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #b9c842;
/* rgb */ color: rgb(185, 200, 66);
/* oklch */ color: oklch(79.7% 0.155 115.5);
Tailwind
colors: {
  custom: {
    50: '#d1d87e',
    500: '#b9c842',
    950: '#000000',
  },
}
SCSS
$custom: #b9c842;
$custom-light: #d1d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c842",
  "rgb": {
    "r": 185,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 66.716,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79655,
    "c": 0.15546,
    "h": 115.5
  },
  "luminance": 0.52016
}

Semantic roles & 50–950 ramp

primary
#B9C842
secondary
#3D3679
accent
#4ADE5A
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B9C842

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

Preview Lab → · Contrast checker → · Palette generator →

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