#B4A02B#B4A02B

#B4A02B is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.132 H 99.1°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#B4A02B
RGBrgb(180, 160, 43)
HSLhsl(51, 61%, 44%)
HSVhsv(51, 76%, 71%)
CMYKcmyk(0%, 11.1%, 76.1%, 29.4%)
CIE-LABlab(65.76, -5.21, 59.47)
CIE-LCHlch(65.76, 59.70, 95.01°)
OKLaboklab(70.31% -0.0208 0.1303)
OKLCHoklch(70.31% 0.132 99.1)
XYZxyz(31.8308, 35.0209, 7.3681)
Luminance0.3502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A02B #2B3FB4
analogous
#B45B2B #B4A02B #83B42B
triadic
#B4A02B #2BB4A0 #A02BB4
tetradic
#B4A02B #2BB45B #2B3FB4 #B42B83
square
#B4A02B #2BB45B #2B3FB4 #B42B83
split-complementary
#B4A02B #2B83B4 #5B2BB4
monochromatic
#514813 #83741F #B4A02B #D3BF49 #DFD07A

Accessibility & contrast

On white

2.62
#B4A02B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#B4A02B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A02B
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A02B#FFFFFF#000000##000000
##B4A02B1.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C13
Deuteranopia (green-blind)
#B5A333
Tritanopia (blue-blind)
#C2948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b4a02b;
/* rgb */ color: rgb(180, 160, 43);
/* oklch */ color: oklch(70.3% 0.132 99.1);
Tailwind
colors: {
  custom: {
    50: '#cebb6e',
    500: '#b4a02b',
    950: '#000000',
  },
}
SCSS
$custom: #b4a02b;
$custom-light: #cebb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a02b",
  "rgb": {
    "r": 180,
    "g": 160,
    "b": 43
  },
  "hsl": {
    "h": 51.241,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70312,
    "c": 0.13199,
    "h": 99.1
  },
  "luminance": 0.35019
}

Semantic roles & 50–950 ramp

primary
#B4A02B
secondary
#7380C7
accent
#5BE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B4A02B

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

Preview Lab → · Contrast checker → · Palette generator →

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