#B2A531#B2A531

#B2A531 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.133 H 102.8°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#B2A531
RGBrgb(178, 165, 49)
HSLhsl(54, 57%, 45%)
HSVhsv(54, 72%, 70%)
CMYKcmyk(0%, 7.3%, 72.5%, 30.2%)
CIE-LABlab(66.97, -8.47, 58.38)
CIE-LCHlch(66.97, 58.99, 98.26°)
OKLaboklab(71.24% -0.0293 0.1293)
OKLCHoklch(71.24% 0.133 102.8)
XYZxyz(32.3710, 36.5984, 8.2642)
Luminance0.3660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A531 #313EB2
analogous
#B26431 #B2A531 #7FB231
triadic
#B2A531 #31B2A5 #A531B2
tetradic
#B2A531 #31B264 #313EB2 #B2317F
square
#B2A531 #31B264 #313EB2 #B2317F
split-complementary
#B2A531 #317FB2 #6431B2
monochromatic
#524C17 #827924 #B2A531 #CFC251 #DCD381

Accessibility & contrast

On white

2.52
#B2A531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#B2A531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A531
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A531#FFFFFF#000000##000000
##B2A5311.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A01D
Deuteranopia (green-blind)
#B8A639
Tritanopia (blue-blind)
#C0998E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b2a531;
/* rgb */ color: rgb(178, 165, 49);
/* oklch */ color: oklch(71.2% 0.133 102.8);
Tailwind
colors: {
  custom: {
    50: '#cdbf71',
    500: '#b2a531',
    950: '#000000',
  },
}
SCSS
$custom: #b2a531;
$custom-light: #cdbf71;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a531",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 49
  },
  "hsl": {
    "h": 53.953,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.7124,
    "c": 0.13253,
    "h": 102.8
  },
  "luminance": 0.36597
}

Semantic roles & 50–950 ramp

primary
#B2A531
secondary
#7981C5
accent
#57E048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A531

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

Preview Lab → · Contrast checker → · Palette generator →

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