#B2C240#B2C240

#B2C240 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.8% C 0.152 H 116.1°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#B2C240
RGBrgb(178, 194, 64)
HSLhsl(67, 52%, 51%)
HSVhsv(67, 67%, 76%)
CMYKcmyk(8.2%, 0%, 67%, 23.9%)
CIE-LABlab(75.09, -22.42, 60.73)
CIE-LCHlch(75.09, 64.73, 110.27°)
OKLaboklab(77.75% -0.0669 0.1367)
OKLCHoklch(77.75% 0.152 116.1)
XYZxyz(38.5782, 48.4193, 12.1631)
Luminance0.4842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C240 #5040C2
analogous
#C29140 #B2C240 #71C240
triadic
#B2C240 #40B2C2 #C240B2
tetradic
#B2C240 #40C291 #5040C2 #C24071
square
#B2C240 #40C291 #5040C2 #C24071
split-complementary
#B2C240 #4071C2 #9140C2
monochromatic
#5E6721 #899530 #B2C240 #C5D16E #D7E09D

Accessibility & contrast

On white

1.97
#B2C240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.68
#B2C240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C240
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C240#FFFFFF#000000##000000
##B2C2401.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB82D
Deuteranopia (green-blind)
#CEBA4A
Tritanopia (blue-blind)
#BDB7A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b2c240;
/* rgb */ color: rgb(178, 194, 64);
/* oklch */ color: oklch(77.8% 0.152 116.1);
Tailwind
colors: {
  custom: {
    50: '#ccd47c',
    500: '#b2c240',
    950: '#000000',
  },
}
SCSS
$custom: #b2c240;
$custom-light: #ccd47c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c240",
  "rgb": {
    "r": 178,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 67.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77754,
    "c": 0.15224,
    "h": 116.1
  },
  "luminance": 0.48419
}

Semantic roles & 50–950 ramp

primary
#B2C240
secondary
#9992CC
accent
#4DDB5E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #B2C240

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

Preview Lab → · Contrast checker → · Palette generator →

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