#B2C031#B2C031

#B2C031 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.2% C 0.159 H 115.2°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#B2C031
RGBrgb(178, 192, 49)
HSLhsl(66, 59%, 47%)
HSVhsv(66, 74%, 75%)
CMYKcmyk(7.3%, 0%, 74.5%, 24.7%)
CIE-LABlab(74.44, -22.23, 65.50)
CIE-LCHlch(74.44, 69.17, 108.75°)
OKLaboklab(77.2% -0.0678 0.1443)
OKLCHoklch(77.2% 0.159 115.2)
XYZxyz(37.7652, 47.3867, 10.0622)
Luminance0.4739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C031 #3F31C0
analogous
#C08631 #B2C031 #6BC031
triadic
#B2C031 #31B2C0 #C031B2
tetradic
#B2C031 #31C086 #3F31C0 #C0316B
square
#B2C031 #31C086 #3F31C0 #C0316B
split-complementary
#B2C031 #316BC0 #8631C0
monochromatic
#585E18 #858F25 #B2C031 #C9D559 #D9E18A

Accessibility & contrast

On white

2.00
#B2C031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#B2C031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C031
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C031#FFFFFF#000000##000000
##B2C0311.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB610
Deuteranopia (green-blind)
#CDB83D
Tritanopia (blue-blind)
#BEB5A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #b2c031;
/* rgb */ color: rgb(178, 192, 49);
/* oklch */ color: oklch(77.2% 0.159 115.2);
Tailwind
colors: {
  custom: {
    50: '#cdd274',
    500: '#b2c031',
    950: '#000000',
  },
}
SCSS
$custom: #b2c031;
$custom-light: #cdd274;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c031",
  "rgb": {
    "r": 178,
    "g": 192,
    "b": 49
  },
  "hsl": {
    "h": 65.874,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.77201,
    "c": 0.15943,
    "h": 115.2
  },
  "luminance": 0.47386
}

Semantic roles & 50–950 ramp

primary
#B2C031
secondary
#8982CB
accent
#45E355
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141409
muted
#83827B

Preview Lab

Preview with #B2C031

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

Preview Lab → · Contrast checker → · Palette generator →

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