#B4A23A#B4A23A

#B4A23A is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.124 H 99.3°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B4A23A
RGBrgb(180, 162, 58)
HSLhsl(51, 51%, 47%)
HSVhsv(51, 68%, 71%)
CMYKcmyk(0%, 10%, 67.8%, 29.4%)
CIE-LABlab(66.41, -5.53, 54.29)
CIE-LCHlch(66.41, 54.57, 95.82°)
OKLaboklab(70.85% -0.0201 0.1221)
OKLCHoklch(70.85% 0.124 99.3)
XYZxyz(32.5079, 35.8509, 9.2098)
Luminance0.3585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A23A #3A4CB4
analogous
#B4653A #B4A23A #89B43A
triadic
#B4A23A #3AB4A2 #A23AB4
tetradic
#B4A23A #3AB465 #3A4CB4 #B43A89
square
#B4A23A #3AB465 #3A4CB4 #B43A89
split-complementary
#B4A23A #3A89B4 #653AB4
monochromatic
#574F1C #86782B #B4A23A #CCBC60 #DBCF8E

Accessibility & contrast

On white

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

On black

8.17
#B4A23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A23A
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A23A#FFFFFF#000000##000000
##B4A23A1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E2C
Deuteranopia (green-blind)
#B6A440
Tritanopia (blue-blind)
#C2968D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a23a;
/* rgb */ color: rgb(180, 162, 58);
/* oklch */ color: oklch(70.9% 0.124 99.3);
Tailwind
colors: {
  custom: {
    50: '#cebd76',
    500: '#b4a23a',
    950: '#000000',
  },
}
SCSS
$custom: #b4a23a;
$custom-light: #cebd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a23a",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 58
  },
  "hsl": {
    "h": 51.148,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.70852,
    "c": 0.12376,
    "h": 99.3
  },
  "luminance": 0.35849
}

Semantic roles & 50–950 ramp

primary
#B4A23A
secondary
#858EC5
accent
#62DB4D
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A23A

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

Preview Lab → · Contrast checker → · Palette generator →

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