#B2C840#B2C840

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

Color values

HEX#B2C840
RGBrgb(178, 200, 64)
HSLhsl(70, 55%, 52%)
HSVhsv(70, 68%, 78%)
CMYKcmyk(11%, 0%, 68%, 21.6%)
CIE-LABlab(76.77, -25.35, 62.44)
CIE-LCHlch(76.77, 67.38, 112.09°)
OKLaboklab(79.1% -0.0751 0.1403)
OKLCHoklch(79.1% 0.159 118.1)
XYZxyz(39.9406, 51.1441, 12.6172)
Luminance0.5114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C840 #5640C8
analogous
#C89A40 #B2C840 #6EC840
triadic
#B2C840 #40B2C8 #C840B2
tetradic
#B2C840 #40C89A #5640C8 #C8406E
square
#B2C840 #40C89A #5640C8 #C8406E
split-complementary
#B2C840 #406EC8 #9A40C8
monochromatic
#616E20 #8B9D2D #B2C840 #C5D670 #D8E39F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2C840#FFFFFF#000000##000000
##B2C8401.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)
#D5BD2B
Deuteranopia (green-blind)
#D3BE4A
Tritanopia (blue-blind)
#BCBDAD
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b2c840;
/* rgb */ color: rgb(178, 200, 64);
/* oklch */ color: oklch(79.1% 0.159 118.1);
Tailwind
colors: {
  custom: {
    50: '#ccd87d',
    500: '#b2c840',
    950: '#000000',
  },
}
SCSS
$custom: #b2c840;
$custom-light: #ccd87d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c840",
  "rgb": {
    "r": 178,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 69.706,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79102,
    "c": 0.15914,
    "h": 118.1
  },
  "luminance": 0.51144
}

Semantic roles & 50–950 ramp

primary
#B2C840
secondary
#403577
accent
#49DF61
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B2C840

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

Preview Lab → · Contrast checker → · Palette generator →

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