#B2B951#B2B951

#B2B951 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.9% C 0.128 H 112.6°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#B2B951
RGBrgb(178, 185, 81)
HSLhsl(64, 43%, 52%)
HSVhsv(64, 56%, 73%)
CMYKcmyk(3.8%, 0%, 56.2%, 27.5%)
CIE-LABlab(72.73, -16.74, 50.94)
CIE-LCHlch(72.73, 53.62, 108.19°)
OKLaboklab(75.91% -0.0492 0.1183)
OKLCHoklch(75.91% 0.128 112.6)
XYZxyz(37.1951, 44.7577, 14.4627)
Luminance0.4476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B951 #5851B9
analogous
#B98C51 #B2B951 #7EB951
triadic
#B2B951 #51B2B9 #B951B2
tetradic
#B2B951 #51B98C #5851B9 #B9517E
square
#B2B951 #51B98C #5851B9 #B9517E
split-complementary
#B2B951 #517EB9 #8C51B9
monochromatic
#626629 #8C923B #B2B951 #C5CB7D #D9DCA8

Accessibility & contrast

On white

2.11
#B2B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#B2B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B951
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B951#FFFFFF#000000##000000
##B2B9511.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B146
Deuteranopia (green-blind)
#C6B457
Tritanopia (blue-blind)
#BDAFA2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b2b951;
/* rgb */ color: rgb(178, 185, 81);
/* oklch */ color: oklch(75.9% 0.128 112.6);
Tailwind
colors: {
  custom: {
    50: '#cbcd85',
    500: '#b2b951',
    950: '#000000',
  },
}
SCSS
$custom: #b2b951;
$custom-light: #cbcd85;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b951",
  "rgb": {
    "r": 178,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 64.038,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75913,
    "c": 0.12814,
    "h": 112.6
  },
  "luminance": 0.44757
}

Semantic roles & 50–950 ramp

primary
#B2B951
secondary
#9F9CCA
accent
#55D25E
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14130B
muted
#82827C

Preview Lab

Preview with #B2B951

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

Preview Lab → · Contrast checker → · Palette generator →

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