#B2C231#B2C231

#B2C231 is a light, vivid yellow. Relative luminance 0.483; OKLCH L 77.6% C 0.162 H 115.9°. Best body text is #000000 at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#B2C231
RGBrgb(178, 194, 49)
HSLhsl(67, 60%, 48%)
HSVhsv(67, 75%, 76%)
CMYKcmyk(8.2%, 0%, 74.7%, 23.9%)
CIE-LABlab(75.00, -23.21, 66.03)
CIE-LCHlch(75.00, 69.99, 109.37°)
OKLaboklab(77.65% -0.0705 0.1454)
OKLCHoklch(77.65% 0.162 115.9)
XYZxyz(38.2073, 48.2709, 10.2096)
Luminance0.4827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C231 #4131C2
analogous
#C28A31 #B2C231 #69C231
triadic
#B2C231 #31B2C2 #C231B2
tetradic
#B2C231 #31C28A #4131C2 #C23169
square
#B2C231 #31C28A #4131C2 #C23169
split-complementary
#B2C231 #3169C2 #8A31C2
monochromatic
#586018 #859125 #B2C231 #C8D65B #D8E28C

Accessibility & contrast

On white

1.97
#B2C231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.65
#B2C231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C231
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C231#FFFFFF#000000##000000
##B2C2311.001.9710.6510.65
#FFFFFF1.971.0021.0021.00
#00000010.6521.001.001.00
##00000010.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B80F
Deuteranopia (green-blind)
#CFBA3E
Tritanopia (blue-blind)
#BEB7A7
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b2c231;
/* rgb */ color: rgb(178, 194, 49);
/* oklch */ color: oklch(77.6% 0.162 115.9);
Tailwind
colors: {
  custom: {
    50: '#cdd474',
    500: '#b2c231',
    950: '#000000',
  },
}
SCSS
$custom: #b2c231;
$custom-light: #cdd474;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c231",
  "rgb": {
    "r": 178,
    "g": 194,
    "b": 49
  },
  "hsl": {
    "h": 66.621,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.7765,
    "c": 0.16161,
    "h": 115.9
  },
  "luminance": 0.4827
}

Semantic roles & 50–950 ramp

primary
#B2C231
secondary
#8B83CC
accent
#45E356
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141409
muted
#83827B

Preview Lab

Preview with #B2C231

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

Preview Lab → · Contrast checker → · Palette generator →

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