#B2A225#B2A225

#B2A225 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.137 H 101.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#B2A225
RGBrgb(178, 162, 37)
HSLhsl(53, 66%, 42%)
HSVhsv(53, 79%, 70%)
CMYKcmyk(0%, 9%, 79.2%, 30.2%)
CIE-LABlab(66.09, -7.40, 61.70)
CIE-LCHlch(66.09, 62.14, 96.84°)
OKLaboklab(70.52% -0.0274 0.134)
OKLCHoklch(70.52% 0.137 101.6)
XYZxyz(31.6159, 35.4407, 6.9253)
Luminance0.3544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A225 #2535B2
analogous
#B25B25 #B2A225 #7CB225
triadic
#B2A225 #25B2A2 #A225B2
tetradic
#B2A225 #25B25B #2535B2 #B2257C
square
#B2A225 #25B25B #2535B2 #B2257C
split-complementary
#B2A225 #257CB2 #5B25B2
monochromatic
#4D4610 #7F741A #B2A225 #D7C53D #E1D470

Accessibility & contrast

On white

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

On black

8.09
#B2A225 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A225
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A225#FFFFFF#000000##000000
##B2A2251.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2a225;
/* rgb */ color: rgb(178, 162, 37);
/* oklch */ color: oklch(70.5% 0.137 101.6);
Tailwind
colors: {
  custom: {
    50: '#cdbd6b',
    500: '#b2a225',
    950: '#000000',
  },
}
SCSS
$custom: #b2a225;
$custom-light: #cdbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a225",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 37
  },
  "hsl": {
    "h": 53.191,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70516,
    "c": 0.13678,
    "h": 101.6
  },
  "luminance": 0.35439
}

Semantic roles & 50–950 ramp

primary
#B2A225
secondary
#6B75C8
accent
#52E93F
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B2A225

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

Preview Lab → · Contrast checker → · Palette generator →

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