#B2C842#B2C842

#B2C842 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.1% C 0.158 H 118.2°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#B2C842
RGBrgb(178, 200, 66)
HSLhsl(70, 55%, 52%)
HSVhsv(70, 67%, 78%)
CMYKcmyk(11%, 0%, 67%, 21.6%)
CIE-LABlab(76.78, -25.22, 61.68)
CIE-LCHlch(76.78, 66.64, 112.24°)
OKLaboklab(79.12% -0.0745 0.139)
OKLCHoklch(79.12% 0.158 118.2)
XYZxyz(39.9985, 51.1672, 12.9223)
Luminance0.5117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C842 #5842C8
analogous
#C89B42 #B2C842 #6FC842
triadic
#B2C842 #42B2C8 #C842B2
tetradic
#B2C842 #42C89B #5842C8 #C8426F
square
#B2C842 #42C89B #5842C8 #C8426F
split-complementary
#B2C842 #426FC8 #9B42C8
monochromatic
#626F20 #8C9F2E #B2C842 #C5D671 #D9E4A1

Accessibility & contrast

On white

1.87
#B2C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#B2C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C842
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C842#FFFFFF#000000##000000
##B2C8421.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2E
Deuteranopia (green-blind)
#D3BE4C
Tritanopia (blue-blind)
#BCBDAD
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b2c842;
/* rgb */ color: rgb(178, 200, 66);
/* oklch */ color: oklch(79.1% 0.158 118.2);
Tailwind
colors: {
  custom: {
    50: '#ccd87e',
    500: '#b2c842',
    950: '#000000',
  },
}
SCSS
$custom: #b2c842;
$custom-light: #ccd87e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c842",
  "rgb": {
    "r": 178,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 69.851,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79117,
    "c": 0.15777,
    "h": 118.2
  },
  "luminance": 0.51167
}

Semantic roles & 50–950 ramp

primary
#B2C842
secondary
#413679
accent
#4ADE62
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B2C842

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

Preview Lab → · Contrast checker → · Palette generator →

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