#B2A12D#B2A12D

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

Color values

HEX#B2A12D
RGBrgb(178, 161, 45)
HSLhsl(52, 60%, 44%)
HSVhsv(52, 75%, 70%)
CMYKcmyk(0%, 9.6%, 74.7%, 30.2%)
CIE-LABlab(65.86, -6.55, 58.79)
CIE-LCHlch(65.86, 59.15, 96.35°)
OKLaboklab(70.35% -0.0243 0.1294)
OKLCHoklch(70.35% 0.132 100.6)
XYZxyz(31.5801, 35.1457, 7.6025)
Luminance0.3514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A12D #2D3EB2
analogous
#B25E2D #B2A12D #80B22D
triadic
#B2A12D #2DB2A1 #A12DB2
tetradic
#B2A12D #2DB25E #2D3EB2 #B22D80
square
#B2A12D #2DB25E #2D3EB2 #B22D80
split-complementary
#B2A12D #2D80B2 #5E2DB2
monochromatic
#504914 #817521 #B2A12D #D1C04B #DED17C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A12D#FFFFFF#000000##000000
##B2A12D1.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)
#B19C17
Deuteranopia (green-blind)
#B5A335
Tritanopia (blue-blind)
#C0958B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a12d;
/* rgb */ color: rgb(178, 161, 45);
/* oklch */ color: oklch(70.3% 0.132 100.6);
Tailwind
colors: {
  custom: {
    50: '#cdbc6f',
    500: '#b2a12d',
    950: '#000000',
  },
}
SCSS
$custom: #b2a12d;
$custom-light: #cdbc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a12d",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 45
  },
  "hsl": {
    "h": 52.331,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70349,
    "c": 0.13161,
    "h": 100.6
  },
  "luminance": 0.35144
}

Semantic roles & 50–950 ramp

primary
#B2A12D
secondary
#757FC6
accent
#59E345
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B2A12D

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

Preview Lab → · Contrast checker → · Palette generator →

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