#B2A142#B2A142

#B2A142 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.117 H 99.2°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#B2A142
RGBrgb(178, 161, 66)
HSLhsl(51, 46%, 48%)
HSVhsv(51, 63%, 70%)
CMYKcmyk(0%, 9.6%, 62.9%, 30.2%)
CIE-LABlab(66.02, -5.37, 50.33)
CIE-LCHlch(66.02, 50.61, 96.09°)
OKLaboklab(70.52% -0.0186 0.1151)
OKLCHoklch(70.52% 0.117 99.2)
XYZxyz(32.0897, 35.3495, 10.2860)
Luminance0.3535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A142 #4253B2
analogous
#B26942 #B2A142 #8BB242
triadic
#B2A142 #42B2A1 #A142B2
tetradic
#B2A142 #42B269 #4253B2 #B2428B
square
#B2A142 #42B269 #4253B2 #B2428B
split-complementary
#B2A142 #428BB2 #6942B2
monochromatic
#595021 #857931 #B2A142 #C8B96A #D8CE96

Accessibility & contrast

On white

2.60
#B2A142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#B2A142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A142
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A142#FFFFFF#000000##000000
##B2A1421.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D37
Deuteranopia (green-blind)
#B4A347
Tritanopia (blue-blind)
#BF968D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a142;
/* rgb */ color: rgb(178, 161, 66);
/* oklch */ color: oklch(70.5% 0.117 99.2);
Tailwind
colors: {
  custom: {
    50: '#ccbc7a',
    500: '#b2a142',
    950: '#000000',
  },
}
SCSS
$custom: #b2a142;
$custom-light: #ccbc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a142",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 66
  },
  "hsl": {
    "h": 50.893,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70524,
    "c": 0.11654,
    "h": 99.2
  },
  "luminance": 0.35348
}

Semantic roles & 50–950 ramp

primary
#B2A142
secondary
#8C94C4
accent
#66D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A142

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

Preview Lab → · Contrast checker → · Palette generator →

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