#B2A231#B2A231

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

Color values

HEX#B2A231
RGBrgb(178, 162, 49)
HSLhsl(53, 57%, 45%)
HSVhsv(53, 72%, 70%)
CMYKcmyk(0%, 9%, 72.5%, 30.2%)
CIE-LABlab(66.16, -6.89, 57.59)
CIE-LCHlch(66.16, 58.00, 96.82°)
OKLaboklab(70.59% -0.0248 0.1276)
OKLCHoklch(70.59% 0.13 101)
XYZxyz(31.8363, 35.5288, 8.0859)
Luminance0.3553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A231 #3141B2
analogous
#B26231 #B2A231 #82B231
triadic
#B2A231 #31B2A2 #A231B2
tetradic
#B2A231 #31B262 #3141B2 #B23182
square
#B2A231 #31B262 #3141B2 #B23182
split-complementary
#B2A231 #3182B2 #6231B2
monochromatic
#524B17 #827624 #B2A231 #CFBF51 #DCD181

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A231#FFFFFF#000000##000000
##B2A2311.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)
#B19D1E
Deuteranopia (green-blind)
#B6A438
Tritanopia (blue-blind)
#C0968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a231;
/* rgb */ color: rgb(178, 162, 49);
/* oklch */ color: oklch(70.6% 0.130 101.0);
Tailwind
colors: {
  custom: {
    50: '#cdbd71',
    500: '#b2a231',
    950: '#000000',
  },
}
SCSS
$custom: #b2a231;
$custom-light: #cdbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a231",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 52.558,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70592,
    "c": 0.12996,
    "h": 101
  },
  "luminance": 0.35527
}

Semantic roles & 50–950 ramp

primary
#B2A231
secondary
#7983C5
accent
#5BE048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A231

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

Preview Lab → · Contrast checker → · Palette generator →

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