#B2A333#B2A333

#B2A333 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.8% C 0.130 H 101.5°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B2A333
RGBrgb(178, 163, 51)
HSLhsl(53, 55%, 45%)
HSVhsv(53, 71%, 70%)
CMYKcmyk(0%, 8.4%, 71.3%, 30.2%)
CIE-LABlab(66.44, -7.32, 57.10)
CIE-LCHlch(66.44, 57.56, 97.31°)
OKLaboklab(70.82% -0.0258 0.1269)
OKLCHoklch(70.82% 0.13 101.5)
XYZxyz(32.0563, 35.8998, 8.3721)
Luminance0.3590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A333 #3342B2
analogous
#B26333 #B2A333 #82B233
triadic
#B2A333 #33B2A3 #A333B2
tetradic
#B2A333 #33B263 #3342B2 #B23382
square
#B2A333 #33B263 #3342B2 #B23382
split-complementary
#B2A333 #3382B2 #6333B2
monochromatic
#534C18 #827725 #B2A333 #CEC054 #DCD184

Accessibility & contrast

On white

2.57
#B2A333 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B2A333 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A333
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A333#FFFFFF#000000##000000
##B2A3331.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E21
Deuteranopia (green-blind)
#B7A43A
Tritanopia (blue-blind)
#C0978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b2a333;
/* rgb */ color: rgb(178, 163, 51);
/* oklch */ color: oklch(70.8% 0.130 101.5);
Tailwind
colors: {
  custom: {
    50: '#cdbd72',
    500: '#b2a333',
    950: '#000000',
  },
}
SCSS
$custom: #b2a333;
$custom-light: #cdbd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a333",
  "rgb": {
    "r": 178,
    "g": 163,
    "b": 51
  },
  "hsl": {
    "h": 52.913,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70822,
    "c": 0.1295,
    "h": 101.5
  },
  "luminance": 0.35898
}

Semantic roles & 50–950 ramp

primary
#B2A333
secondary
#7C84C5
accent
#5BDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A333

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

Preview Lab → · Contrast checker → · Palette generator →

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