#B2C731#B2C731

#B2C731 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 78.8% C 0.167 H 117.5°. Best body text is #000000 at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#B2C731
RGBrgb(178, 199, 49)
HSLhsl(68, 60%, 49%)
HSVhsv(68, 75%, 78%)
CMYKcmyk(10.6%, 0%, 75.4%, 22%)
CIE-LABlab(76.40, -25.64, 67.34)
CIE-LCHlch(76.40, 72.05, 110.85°)
OKLaboklab(78.77% -0.0772 0.1482)
OKLCHoklch(78.77% 0.167 117.5)
XYZxyz(39.3389, 50.5340, 10.5868)
Luminance0.5053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C731 #4631C7
analogous
#C79131 #B2C731 #67C731
triadic
#B2C731 #31B2C7 #C731B2
tetradic
#B2C731 #31C791 #4631C7 #C73167
square
#B2C731 #31C791 #4631C7 #C73167
split-complementary
#B2C731 #3167C7 #9131C7
monochromatic
#5A6519 #869625 #B2C731 #C6D75E #D8E38F

Accessibility & contrast

On white

1.89
#B2C731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.11
#B2C731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C731
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C731#FFFFFF#000000##000000
##B2C7311.001.8911.1111.11
#FFFFFF1.891.0021.0021.00
#00000011.1121.001.001.00
##00000011.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC0A
Deuteranopia (green-blind)
#D3BD3F
Tritanopia (blue-blind)
#BDBCAB
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #b2c731;
/* rgb */ color: rgb(178, 199, 49);
/* oklch */ color: oklch(78.8% 0.167 117.5);
Tailwind
colors: {
  custom: {
    50: '#cdd775',
    500: '#b2c731',
    950: '#000000',
  },
}
SCSS
$custom: #b2c731;
$custom-light: #cdd775;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c731",
  "rgb": {
    "r": 178,
    "g": 199,
    "b": 49
  },
  "hsl": {
    "h": 68.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.78775,
    "c": 0.1671,
    "h": 117.5
  },
  "luminance": 0.50534
}

Semantic roles & 50–950 ramp

primary
#B2C731
secondary
#362D6F
accent
#44E45B
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B2C731

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

Preview Lab → · Contrast checker → · Palette generator →

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