#B2A12B#B2A12B

#B2A12B is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.3% C 0.133 H 100.7°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B2A12B
RGBrgb(178, 161, 43)
HSLhsl(52, 61%, 43%)
HSVhsv(52, 76%, 70%)
CMYKcmyk(0%, 9.6%, 75.8%, 30.2%)
CIE-LABlab(65.85, -6.63, 59.49)
CIE-LCHlch(65.85, 59.85, 96.36°)
OKLaboklab(70.34% -0.0247 0.1305)
OKLCHoklch(70.34% 0.133 100.7)
XYZxyz(31.5425, 35.1306, 7.4045)
Luminance0.3513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A12B #2B3CB2
analogous
#B25D2B #B2A12B #80B22B
triadic
#B2A12B #2BB2A1 #A12BB2
tetradic
#B2A12B #2BB25D #2B3CB2 #B22B80
square
#B2A12B #2BB25D #2B3CB2 #B22B80
split-complementary
#B2A12B #2B80B2 #5D2BB2
monochromatic
#4F4813 #81741F #B2A12B #D3C148 #DFD279

Accessibility & contrast

On white

2.62
#B2A12B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#B2A12B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A12B
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A12B#FFFFFF#000000##000000
##B2A12B1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C13
Deuteranopia (green-blind)
#B5A333
Tritanopia (blue-blind)
#C0958A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a12b;
/* rgb */ color: rgb(178, 161, 43);
/* oklch */ color: oklch(70.3% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#cdbc6e',
    500: '#b2a12b',
    950: '#000000',
  },
}
SCSS
$custom: #b2a12b;
$custom-light: #cdbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a12b",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 43
  },
  "hsl": {
    "h": 52.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.70336,
    "c": 0.13277,
    "h": 100.7
  },
  "luminance": 0.35129
}

Semantic roles & 50–950 ramp

primary
#B2A12B
secondary
#727DC7
accent
#58E444
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B2A12B

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

Preview Lab → · Contrast checker → · Palette generator →

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