#B9C838#B9C838

#B9C838 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 79.6% C 0.162 H 115.4°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#B9C838
RGBrgb(185, 200, 56)
HSLhsl(66, 57%, 50%)
HSVhsv(66, 72%, 78%)
CMYKcmyk(7.5%, 0%, 72%, 21.6%)
CIE-LABlab(77.23, -22.89, 65.98)
CIE-LCHlch(77.23, 69.84, 109.14°)
OKLaboklab(79.58% -0.0694 0.1463)
OKLCHoklch(79.58% 0.162 115.4)
XYZxyz(41.3768, 51.9090, 11.5804)
Luminance0.5191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C838 #4738C8
analogous
#C88F38 #B9C838 #71C838
triadic
#B9C838 #38B9C8 #C838B9
tetradic
#B9C838 #38C88F #4738C8 #C83871
square
#B9C838 #38C88F #4738C8 #C83871
split-complementary
#B9C838 #3871C8 #8F38C8
monochromatic
#61691D #8D992A #B9C838 #CAD568 #DBE398

Accessibility & contrast

On white

1.85
#B9C838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.38
#B9C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C838
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C838#FFFFFF#000000##000000
##B9C8381.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE1C
Deuteranopia (green-blind)
#D5C044
Tritanopia (blue-blind)
#C5BCAC
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #b9c838;
/* rgb */ color: rgb(185, 200, 56);
/* oklch */ color: oklch(79.6% 0.162 115.4);
Tailwind
colors: {
  custom: {
    50: '#d2d878',
    500: '#b9c838',
    950: '#000000',
  },
}
SCSS
$custom: #b9c838;
$custom-light: #d2d878;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c838",
  "rgb": {
    "r": 185,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 66.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.79583,
    "c": 0.16191,
    "h": 115.4
  },
  "luminance": 0.51908
}

Semantic roles & 50–950 ramp

primary
#B9C838
secondary
#383273
accent
#48E058
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B9C838

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

Preview Lab → · Contrast checker → · Palette generator →

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