#B2A951#B2A951

#B2A951 is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.4% C 0.111 H 103.5°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#B2A951
RGBrgb(178, 169, 81)
HSLhsl(54, 39%, 51%)
HSVhsv(54, 54%, 70%)
CMYKcmyk(0%, 5.1%, 54.5%, 30.2%)
CIE-LABlab(68.34, -8.48, 45.91)
CIE-LCHlch(68.34, 46.69, 100.47°)
OKLaboklab(72.41% -0.0257 0.1075)
OKLCHoklch(72.41% 0.111 103.5)
XYZxyz(34.0343, 38.4361, 13.4091)
Luminance0.3844 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A951 #515AB2
analogous
#B27851 #B2A951 #8AB251
triadic
#B2A951 #51B2A9 #A951B2
tetradic
#B2A951 #51B278 #515AB2 #B2518A
square
#B2A951 #51B278 #515AB2 #B2518A
split-complementary
#B2A951 #518AB2 #7851B2
monochromatic
#5F5A2A #89823D #B2A951 #C5BE7B #D8D3A6

Accessibility & contrast

On white

2.42
#B2A951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#B2A951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A951
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A951#FFFFFF#000000##000000
##B2A9511.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A449
Deuteranopia (green-blind)
#B9A955
Tritanopia (blue-blind)
#BE9F95
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2a951;
/* rgb */ color: rgb(178, 169, 81);
/* oklch */ color: oklch(72.4% 0.111 103.5);
Tailwind
colors: {
  custom: {
    50: '#cbc284',
    500: '#b2a951',
    950: '#000000',
  },
}
SCSS
$custom: #b2a951;
$custom-light: #cbc284;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a951",
  "rgb": {
    "r": 178,
    "g": 169,
    "b": 81
  },
  "hsl": {
    "h": 54.433,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.72415,
    "c": 0.11052,
    "h": 103.5
  },
  "luminance": 0.38435
}

Semantic roles & 50–950 ramp

primary
#B2A951
secondary
#9A9EC5
accent
#64CF59
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#14120B
muted
#82817C

Preview Lab

Preview with #B2A951

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

Preview Lab → · Contrast checker → · Palette generator →

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