#B2C252#B2C252

#B2C252 is a light, vivid yellow. Relative luminance 0.487; OKLCH L 77.9% C 0.138 H 116.5°. Best body text is #000000 at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#B2C252
RGBrgb(178, 194, 82)
HSLhsl(69, 48%, 54%)
HSVhsv(69, 58%, 76%)
CMYKcmyk(8.2%, 0%, 57.7%, 23.9%)
CIE-LABlab(75.24, -21.17, 53.31)
CIE-LCHlch(75.24, 57.36, 111.66°)
OKLaboklab(77.92% -0.0616 0.1235)
OKLCHoklch(77.92% 0.138 116.5)
XYZxyz(39.1756, 48.6582, 15.3092)
Luminance0.4866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C252 #6252C2
analogous
#C29A52 #B2C252 #7AC252
triadic
#B2C252 #52B2C2 #C252B2
tetradic
#B2C252 #52C29A #6252C2 #C2527A
square
#B2C252 #52C29A #6252C2 #C2527A
split-complementary
#B2C252 #527AC2 #9A52C2
monochromatic
#677228 #909F38 #B2C252 #C6D27F #DAE2AC

Accessibility & contrast

On white

1.96
#B2C252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.73
#B2C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C252
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C252#FFFFFF#000000##000000
##B2C2521.001.9610.7310.73
#FFFFFF1.961.0021.0021.00
#00000010.7321.001.001.00
##00000010.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB946
Deuteranopia (green-blind)
#CDBA59
Tritanopia (blue-blind)
#BCB8AA
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b2c252;
/* rgb */ color: rgb(178, 194, 82);
/* oklch */ color: oklch(77.9% 0.138 116.5);
Tailwind
colors: {
  custom: {
    50: '#cbd487',
    500: '#b2c252',
    950: '#000000',
  },
}
SCSS
$custom: #b2c252;
$custom-light: #cbd487;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c252",
  "rgb": {
    "r": 178,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 68.571,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77922,
    "c": 0.138,
    "h": 116.5
  },
  "luminance": 0.48658
}

Semantic roles & 50–950 ramp

primary
#B2C252
secondary
#A7A0D0
accent
#50D764
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#14140B
muted
#82827C

Preview Lab

Preview with #B2C252

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

Preview Lab → · Contrast checker → · Palette generator →

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