#B2C151#B2C151

#B2C151 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 77.7% C 0.138 H 116.1°. Best body text is #000000 at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#B2C151
RGBrgb(178, 193, 81)
HSLhsl(68, 47%, 54%)
HSVhsv(68, 58%, 76%)
CMYKcmyk(7.8%, 0%, 58%, 24.3%)
CIE-LABlab(74.95, -20.75, 53.43)
CIE-LCHlch(74.95, 57.32, 111.22°)
OKLaboklab(77.69% -0.0605 0.1236)
OKLCHoklch(77.69% 0.138 116.1)
XYZxyz(38.9160, 48.1995, 15.0363)
Luminance0.4820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C151 #6051C1
analogous
#C19851 #B2C151 #7AC151
triadic
#B2C151 #51B2C1 #C151B2
tetradic
#B2C151 #51C198 #6051C1 #C1517A
square
#B2C151 #51C198 #6051C1 #C1517A
split-complementary
#B2C151 #517AC1 #9851C1
monochromatic
#667028 #8F9D38 #B2C151 #C6D17E #DAE1AB

Accessibility & contrast

On white

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

On black

10.64
#B2C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C151
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C151#FFFFFF#000000##000000
##B2C1511.001.9710.6410.64
#FFFFFF1.971.0021.0021.00
#00000010.6421.001.001.00
##00000010.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB845
Deuteranopia (green-blind)
#CCB958
Tritanopia (blue-blind)
#BCB7A9
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b2c151;
/* rgb */ color: rgb(178, 193, 81);
/* oklch */ color: oklch(77.7% 0.138 116.1);
Tailwind
colors: {
  custom: {
    50: '#cbd386',
    500: '#b2c151',
    950: '#000000',
  },
}
SCSS
$custom: #b2c151;
$custom-light: #cbd386;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c151",
  "rgb": {
    "r": 178,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 68.036,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77689,
    "c": 0.13766,
    "h": 116.1
  },
  "luminance": 0.48199
}

Semantic roles & 50–950 ramp

primary
#B2C151
secondary
#A59FCF
accent
#51D763
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#14140B
muted
#82827C

Preview Lab

Preview with #B2C151

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

Preview Lab → · Contrast checker → · Palette generator →

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