#B2A131#B2A131

#B2A131 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.129 H 100.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B2A131
RGBrgb(178, 161, 49)
HSLhsl(52, 57%, 45%)
HSVhsv(52, 72%, 70%)
CMYKcmyk(0%, 9.6%, 72.5%, 30.2%)
CIE-LABlab(65.89, -6.36, 57.32)
CIE-LCHlch(65.89, 57.67, 96.33°)
OKLaboklab(70.38% -0.0233 0.127)
OKLCHoklch(70.38% 0.129 100.4)
XYZxyz(31.6608, 35.1779, 8.0275)
Luminance0.3518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A131 #3142B2
analogous
#B26131 #B2A131 #83B231
triadic
#B2A131 #31B2A1 #A131B2
tetradic
#B2A131 #31B261 #3142B2 #B23183
square
#B2A131 #31B261 #3142B2 #B23183
split-complementary
#B2A131 #3183B2 #6131B2
monochromatic
#524A17 #827624 #B2A131 #CFBF51 #DCD081

Accessibility & contrast

On white

2.61
#B2A131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B2A131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A131
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A131#FFFFFF#000000##000000
##B2A1311.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B5A338
Tritanopia (blue-blind)
#C0958B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a131;
/* rgb */ color: rgb(178, 161, 49);
/* oklch */ color: oklch(70.4% 0.129 100.4);
Tailwind
colors: {
  custom: {
    50: '#cdbc71',
    500: '#b2a131',
    950: '#000000',
  },
}
SCSS
$custom: #b2a131;
$custom-light: #cdbc71;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a131",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 49
  },
  "hsl": {
    "h": 52.093,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70376,
    "c": 0.12913,
    "h": 100.4
  },
  "luminance": 0.35176
}

Semantic roles & 50–950 ramp

primary
#B2A131
secondary
#7983C5
accent
#5CE048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B2A131

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

Preview Lab → · Contrast checker → · Palette generator →

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