#B4A231#B4A231

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

Color values

HEX#B4A231
RGBrgb(180, 162, 49)
HSLhsl(52, 57%, 45%)
HSVhsv(52, 73%, 71%)
CMYKcmyk(0%, 10%, 72.8%, 29.4%)
CIE-LABlab(66.34, -6.01, 57.83)
CIE-LCHlch(66.34, 58.14, 95.93°)
OKLaboklab(70.78% -0.0224 0.128)
OKLCHoklch(70.78% 0.13 99.9)
XYZxyz(32.2986, 35.7672, 8.1076)
Luminance0.3577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A231 #3143B4
analogous
#B46131 #B4A231 #84B431
triadic
#B4A231 #31B4A2 #A231B4
tetradic
#B4A231 #31B461 #3143B4 #B43184
square
#B4A231 #31B461 #3143B4 #B43184
split-complementary
#B4A231 #3184B4 #6131B4
monochromatic
#544B17 #847724 #B4A231 #D0BF52 #DDD182

Accessibility & contrast

On white

2.58
#B4A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#B4A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A231
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A231#FFFFFF#000000##000000
##B4A2311.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D1E
Deuteranopia (green-blind)
#B7A438
Tritanopia (blue-blind)
#C2968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a231;
/* rgb */ color: rgb(180, 162, 49);
/* oklch */ color: oklch(70.8% 0.130 99.9);
Tailwind
colors: {
  custom: {
    50: '#cebd71',
    500: '#b4a231',
    950: '#000000',
  },
}
SCSS
$custom: #b4a231;
$custom-light: #cebd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a231",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 51.756,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70781,
    "c": 0.12995,
    "h": 99.9
  },
  "luminance": 0.35766
}

Semantic roles & 50–950 ramp

primary
#B4A231
secondary
#7B85C6
accent
#5CE047
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A231

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

Preview Lab → · Contrast checker → · Palette generator →

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