#B2A223#B2A223

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

Color values

HEX#B2A223
RGBrgb(178, 162, 35)
HSLhsl(53, 67%, 42%)
HSVhsv(53, 80%, 70%)
CMYKcmyk(0%, 9%, 80.3%, 30.2%)
CIE-LABlab(66.08, -7.47, 62.31)
CIE-LCHlch(66.08, 62.75, 96.84°)
OKLaboklab(70.51% -0.0278 0.1349)
OKLCHoklch(70.51% 0.138 101.6)
XYZxyz(31.5853, 35.4285, 6.7644)
Luminance0.3543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A223 #2333B2
analogous
#B25B23 #B2A223 #7BB223
triadic
#B2A223 #23B2A2 #A223B2
tetradic
#B2A223 #23B25B #2333B2 #B2237B
square
#B2A223 #23B25B #2333B2 #B2237B
split-complementary
#B2A223 #237BB2 #5B23B2
monochromatic
#4C450F #7F7319 #B2A223 #D8C73A #E2D56D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A223#FFFFFF#000000##000000
##B2A2231.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)
#B29D00
Deuteranopia (green-blind)
#B7A32D
Tritanopia (blue-blind)
#C0968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a223;
/* rgb */ color: rgb(178, 162, 35);
/* oklch */ color: oklch(70.5% 0.138 101.6);
Tailwind
colors: {
  custom: {
    50: '#cdbd6a',
    500: '#b2a223',
    950: '#000000',
  },
}
SCSS
$custom: #b2a223;
$custom-light: #cdbd6a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a223",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 35
  },
  "hsl": {
    "h": 53.287,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70506,
    "c": 0.13775,
    "h": 101.6
  },
  "luminance": 0.35427
}

Semantic roles & 50–950 ramp

primary
#B2A223
secondary
#6873C9
accent
#51EA3E
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B2A223

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

Preview Lab → · Contrast checker → · Palette generator →

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