#B2C831#B2C831

#B2C831 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.0% C 0.168 H 117.8°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#B2C831
RGBrgb(178, 200, 49)
HSLhsl(69, 61%, 49%)
HSVhsv(69, 76%, 78%)
CMYKcmyk(11%, 0%, 75.5%, 21.6%)
CIE-LABlab(76.68, -26.12, 67.60)
CIE-LCHlch(76.68, 72.47, 111.13°)
OKLaboklab(79% -0.0785 0.1487)
OKLCHoklch(79% 0.168 117.8)
XYZxyz(39.5697, 50.9957, 10.6638)
Luminance0.5100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C831 #4731C8
analogous
#C89331 #B2C831 #67C831
triadic
#B2C831 #31B2C8 #C831B2
tetradic
#B2C831 #31C893 #4731C8 #C83167
square
#B2C831 #31C893 #4731C8 #C83167
split-complementary
#B2C831 #3167C8 #9331C8
monochromatic
#5B6619 #869725 #B2C831 #C6D85F #D7E490

Accessibility & contrast

On white

1.88
#B2C831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.20
#B2C831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C831
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C831#FFFFFF#000000##000000
##B2C8311.001.8811.2011.20
#FFFFFF1.881.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2c831;
/* rgb */ color: rgb(178, 200, 49);
/* oklch */ color: oklch(79.0% 0.168 117.8);
Tailwind
colors: {
  custom: {
    50: '#cdd875',
    500: '#b2c831',
    950: '#000000',
  },
}
SCSS
$custom: #b2c831;
$custom-light: #cdd875;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c831",
  "rgb": {
    "r": 178,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 68.742,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.79001,
    "c": 0.1682,
    "h": 117.8
  },
  "luminance": 0.50995
}

Semantic roles & 50–950 ramp

primary
#B2C831
secondary
#372D70
accent
#44E45B
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B2C831

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

Preview Lab → · Contrast checker → · Palette generator →

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