#B2C931#B2C931

#B2C931 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.2% C 0.169 H 118.1°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#B2C931
RGBrgb(178, 201, 49)
HSLhsl(69, 61%, 49%)
HSVhsv(69, 76%, 79%)
CMYKcmyk(11.4%, 0%, 75.6%, 21.2%)
CIE-LABlab(76.96, -26.60, 67.86)
CIE-LCHlch(76.96, 72.89, 111.41°)
OKLaboklab(79.23% -0.0799 0.1493)
OKLCHoklch(79.23% 0.169 118.1)
XYZxyz(39.8020, 51.4604, 10.7412)
Luminance0.5146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C931 #4831C9
analogous
#C99431 #B2C931 #66C931
triadic
#B2C931 #31B2C9 #C931B2
tetradic
#B2C931 #31C994 #4831C9 #C93166
square
#B2C931 #31C994 #4831C9 #C93166
split-complementary
#B2C931 #3166C9 #9431C9
monochromatic
#5B6719 #869825 #B2C931 #C6D85F #D7E490

Accessibility & contrast

On white

1.86
#B2C931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#B2C931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C931
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C931#FFFFFF#000000##000000
##B2C9311.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BE08
Deuteranopia (green-blind)
#D4BF3F
Tritanopia (blue-blind)
#BDBEAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b2c931;
/* rgb */ color: rgb(178, 201, 49);
/* oklch */ color: oklch(79.2% 0.169 118.1);
Tailwind
colors: {
  custom: {
    50: '#cdd975',
    500: '#b2c931',
    950: '#000000',
  },
}
SCSS
$custom: #b2c931;
$custom-light: #cdd975;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c931",
  "rgb": {
    "r": 178,
    "g": 201,
    "b": 49
  },
  "hsl": {
    "h": 69.079,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.79227,
    "c": 0.16931,
    "h": 118.1
  },
  "luminance": 0.5146
}

Semantic roles & 50–950 ramp

primary
#B2C931
secondary
#382D71
accent
#44E45C
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B2C931

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

Preview Lab → · Contrast checker → · Palette generator →

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