#B8D162#B8D162

#B8D162 is a light, vivid yellow-green. Relative luminance 0.567; OKLCH L 81.9% C 0.140 H 120.1°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#B8D162
RGBrgb(184, 209, 98)
HSLhsl(74, 55%, 60%)
HSVhsv(74, 53%, 82%)
CMYKcmyk(12%, 0%, 53.1%, 18%)
CIE-LABlab(80.00, -24.73, 51.57)
CIE-LCHlch(80.00, 57.19, 115.62°)
OKLaboklab(81.9% -0.0704 0.1213)
OKLCHoklch(81.9% 0.14 120.1)
XYZxyz(44.7726, 56.6733, 20.1333)
Luminance0.5667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8D162 #7B62D1
analogous
#D1B362 #B8D162 #80D162
triadic
#B8D162 #62B8D1 #D162B8
tetradic
#B8D162 #62D1B3 #7B62D1 #D16280
square
#B8D162 #62D1B3 #7B62D1 #D16280
split-complementary
#B8D162 #6280D1 #B362D1
monochromatic
#788F2A #A0BE38 #B8D162 #CDDF91 #E3EDC1

Accessibility & contrast

On white

1.70
#B8D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#B8D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8D162
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8D162#FFFFFF#000000##000000
##B8D1621.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC757
Deuteranopia (green-blind)
#D9C769
Tritanopia (blue-blind)
#C1C7B8
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #b8d162;
/* rgb */ color: rgb(184, 209, 98);
/* oklch */ color: oklch(81.9% 0.140 120.1);
Tailwind
colors: {
  custom: {
    50: '#cfdf92',
    500: '#b8d162',
    950: '#000000',
  },
}
SCSS
$custom: #b8d162;
$custom-light: #cfdf92;
$custom-dark: #000000;
JSON
{
  "hex": "#b8d162",
  "rgb": {
    "r": 184,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 73.514,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.81899,
    "c": 0.14029,
    "h": 120.1
  },
  "luminance": 0.56673
}

Semantic roles & 50–950 ramp

primary
#B8D162
secondary
#554295
accent
#23C247
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150D
muted
#83847F

Preview Lab

Preview with #B8D162

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

Preview Lab → · Contrast checker → · Palette generator →

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