#B2C940#B2C940

#B2C940 is a light, vivid yellow-green. Relative luminance 0.516; OKLCH L 79.3% C 0.160 H 118.5°. Best body text is #000000 at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#B2C940
RGBrgb(178, 201, 64)
HSLhsl(70, 56%, 52%)
HSVhsv(70, 68%, 79%)
CMYKcmyk(11.4%, 0%, 68.2%, 21.2%)
CIE-LABlab(77.05, -25.83, 62.72)
CIE-LCHlch(77.05, 67.83, 112.38°)
OKLaboklab(79.33% -0.0764 0.1409)
OKLCHoklch(79.33% 0.16 118.5)
XYZxyz(40.1729, 51.6088, 12.6947)
Luminance0.5161 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C940 #5740C9
analogous
#C99C40 #B2C940 #6EC940
triadic
#B2C940 #40B2C9 #C940B2
tetradic
#B2C940 #40C99C #5740C9 #C9406E
square
#B2C940 #40C99C #5740C9 #C9406E
split-complementary
#B2C940 #406EC9 #9C40C9
monochromatic
#626F1F #8C9F2D #B2C940 #C5D670 #D8E49F

Accessibility & contrast

On white

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

On black

11.32
#B2C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C940
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C940#FFFFFF#000000##000000
##B2C9401.001.8511.3211.32
#FFFFFF1.851.0021.0021.00
#00000011.3221.001.001.00
##00000011.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#D3BF4B
Tritanopia (blue-blind)
#BCBEAE
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b2c940;
/* rgb */ color: rgb(178, 201, 64);
/* oklch */ color: oklch(79.3% 0.160 118.5);
Tailwind
colors: {
  custom: {
    50: '#ccd97d',
    500: '#b2c940',
    950: '#000000',
  },
}
SCSS
$custom: #b2c940;
$custom-light: #ccd97d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c940",
  "rgb": {
    "r": 178,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 70.073,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79327,
    "c": 0.16031,
    "h": 118.5
  },
  "luminance": 0.51608
}

Semantic roles & 50–950 ramp

primary
#B2C940
secondary
#403578
accent
#49DF62
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B2C940

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

Preview Lab → · Contrast checker → · Palette generator →

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