#B2A22D#B2A22D

#B2A22D is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.132 H 101.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#B2A22D
RGBrgb(178, 162, 45)
HSLhsl(53, 60%, 44%)
HSVhsv(53, 75%, 70%)
CMYKcmyk(0%, 9%, 74.7%, 30.2%)
CIE-LABlab(66.13, -7.08, 59.04)
CIE-LCHlch(66.13, 59.47, 96.83°)
OKLaboklab(70.56% -0.0258 0.1299)
OKLCHoklch(70.56% 0.132 101.2)
XYZxyz(31.7556, 35.4966, 7.6609)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A22D #2D3DB2
analogous
#B25F2D #B2A22D #7FB22D
triadic
#B2A22D #2DB2A2 #A22DB2
tetradic
#B2A22D #2DB25F #2D3DB2 #B22D7F
square
#B2A22D #2DB25F #2D3DB2 #B22D7F
split-complementary
#B2A22D #2D7FB2 #5F2DB2
monochromatic
#504914 #817621 #B2A22D #D1C14B #DED27C

Accessibility & contrast

On white

2.59
#B2A22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#B2A22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A22D
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A22D#FFFFFF#000000##000000
##B2A22D1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D17
Deuteranopia (green-blind)
#B6A435
Tritanopia (blue-blind)
#C0968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a22d;
/* rgb */ color: rgb(178, 162, 45);
/* oklch */ color: oklch(70.6% 0.132 101.2);
Tailwind
colors: {
  custom: {
    50: '#cdbd6f',
    500: '#b2a22d',
    950: '#000000',
  },
}
SCSS
$custom: #b2a22d;
$custom-light: #cdbd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a22d",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 45
  },
  "hsl": {
    "h": 52.782,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70564,
    "c": 0.13242,
    "h": 101.2
  },
  "luminance": 0.35495
}

Semantic roles & 50–950 ramp

primary
#B2A22D
secondary
#757EC6
accent
#58E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A22D

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

Preview Lab → · Contrast checker → · Palette generator →

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