#B2CA21#B2CA21

#B2CA21 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.4% C 0.177 H 118.2°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#B2CA21
RGBrgb(178, 202, 33)
HSLhsl(69, 72%, 46%)
HSVhsv(69, 84%, 79%)
CMYKcmyk(11.9%, 0%, 83.7%, 20.8%)
CIE-LABlab(77.17, -27.67, 72.42)
CIE-LCHlch(77.17, 77.52, 110.91°)
OKLaboklab(79.38% -0.0839 0.1564)
OKLCHoklch(79.38% 0.177 118.2)
XYZxyz(39.7561, 51.8162, 9.3457)
Luminance0.5182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2CA21 #3921CA
analogous
#CA8D21 #B2CA21 #5DCA21
triadic
#B2CA21 #21B2CA #CA21B2
tetradic
#B2CA21 #21CA8D #3921CA #CA215D
square
#B2CA21 #21CA8D #3921CA #CA215D
split-complementary
#B2CA21 #215DCA #8D21CA
monochromatic
#556110 #849518 #B2CA21 #CBE147 #DAEA7C

Accessibility & contrast

On white

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

On black

11.36
#B2CA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2CA21
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2CA21#FFFFFF#000000##000000
##B2CA211.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BE00
Deuteranopia (green-blind)
#D5BF34
Tritanopia (blue-blind)
#BDBEAC
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #b2ca21;
/* rgb */ color: rgb(178, 202, 33);
/* oklch */ color: oklch(79.4% 0.177 118.2);
Tailwind
colors: {
  custom: {
    50: '#cdda6f',
    500: '#b2ca21',
    950: '#000000',
  },
}
SCSS
$custom: #b2ca21;
$custom-light: #cdda6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ca21",
  "rgb": {
    "r": 178,
    "g": 202,
    "b": 33
  },
  "hsl": {
    "h": 68.521,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.79377,
    "c": 0.17745,
    "h": 118.2
  },
  "luminance": 0.51816
}

Semantic roles & 50–950 ramp

primary
#B2CA21
secondary
#2E246C
accent
#39EF53
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141408
muted
#83837D

Preview Lab

Preview with #B2CA21

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

Preview Lab → · Contrast checker → · Palette generator →

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