#B2A233#B2A233

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

Color values

HEX#B2A233
RGBrgb(178, 162, 51)
HSLhsl(52, 55%, 45%)
HSVhsv(52, 71%, 70%)
CMYKcmyk(0%, 9%, 71.3%, 30.2%)
CIE-LABlab(66.17, -6.79, 56.83)
CIE-LCHlch(66.17, 57.23, 96.81°)
OKLaboklab(70.61% -0.0243 0.1263)
OKLCHoklch(70.61% 0.129 100.9)
XYZxyz(31.8794, 35.5461, 8.3132)
Luminance0.3554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A233 #3343B2
analogous
#B26333 #B2A233 #83B233
triadic
#B2A233 #33B2A2 #A233B2
tetradic
#B2A233 #33B263 #3343B2 #B23383
square
#B2A233 #33B263 #3343B2 #B23383
split-complementary
#B2A233 #3383B2 #6333B2
monochromatic
#534B18 #827725 #B2A233 #CEBF54 #DCD184

Accessibility & contrast

On white

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

On black

8.11
#B2A233 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A233
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A233#FFFFFF#000000##000000
##B2A2331.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D22
Deuteranopia (green-blind)
#B6A43A
Tritanopia (blue-blind)
#C0968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a233;
/* rgb */ color: rgb(178, 162, 51);
/* oklch */ color: oklch(70.6% 0.129 100.9);
Tailwind
colors: {
  custom: {
    50: '#cdbd72',
    500: '#b2a233',
    950: '#000000',
  },
}
SCSS
$custom: #b2a233;
$custom-light: #cdbd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a233",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 51
  },
  "hsl": {
    "h": 52.441,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70607,
    "c": 0.12865,
    "h": 100.9
  },
  "luminance": 0.35545
}

Semantic roles & 50–950 ramp

primary
#B2A233
secondary
#7C85C5
accent
#5CDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A233

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

Preview Lab → · Contrast checker → · Palette generator →

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