#B2C838#B2C838

#B2C838 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.0% C 0.164 H 118.0°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#B2C838
RGBrgb(178, 200, 56)
HSLhsl(69, 57%, 50%)
HSVhsv(69, 72%, 78%)
CMYKcmyk(11%, 0%, 72%, 21.6%)
CIE-LABlab(76.72, -25.79, 65.31)
CIE-LCHlch(76.72, 70.21, 111.55°)
OKLaboklab(79.04% -0.077 0.1451)
OKLCHoklch(79.04% 0.164 118)
XYZxyz(39.7291, 51.0594, 11.5031)
Luminance0.5106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C838 #4E38C8
analogous
#C89638 #B2C838 #6AC838
triadic
#B2C838 #38B2C8 #C838B2
tetradic
#B2C838 #38C896 #4E38C8 #C8386A
square
#B2C838 #38C896 #4E38C8 #C8386A
split-complementary
#B2C838 #386AC8 #9638C8
monochromatic
#5D691D #88992A #B2C838 #C5D568 #D7E398

Accessibility & contrast

On white

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

On black

11.21
#B2C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C838
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C838#FFFFFF#000000##000000
##B2C8381.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD1D
Deuteranopia (green-blind)
#D3BE44
Tritanopia (blue-blind)
#BDBDAC
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b2c838;
/* rgb */ color: rgb(178, 200, 56);
/* oklch */ color: oklch(79.0% 0.164 118.0);
Tailwind
colors: {
  custom: {
    50: '#ccd878',
    500: '#b2c838',
    950: '#000000',
  },
}
SCSS
$custom: #b2c838;
$custom-light: #ccd878;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c838",
  "rgb": {
    "r": 178,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 69.167,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.79044,
    "c": 0.16426,
    "h": 118
  },
  "luminance": 0.51059
}

Semantic roles & 50–950 ramp

primary
#B2C838
secondary
#3B3273
accent
#48E05F
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#14140A
muted
#83837D

Preview Lab

Preview with #B2C838

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

Preview Lab → · Contrast checker → · Palette generator →

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