#B4A02F#B4A02F

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

Color values

HEX#B4A02F
RGBrgb(180, 160, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 74%, 71%)
CMYKcmyk(0%, 11.1%, 73.9%, 29.4%)
CIE-LABlab(65.79, -5.04, 58.05)
CIE-LCHlch(65.79, 58.26, 94.96°)
OKLaboklab(70.34% -0.0199 0.1281)
OKLCHoklch(70.34% 0.13 98.8)
XYZxyz(31.9078, 35.0517, 7.7737)
Luminance0.3505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A02F #2F43B4
analogous
#B45D2F #B4A02F #86B42F
triadic
#B4A02F #2FB4A0 #A02FB4
tetradic
#B4A02F #2FB45D #2F43B4 #B42F86
square
#B4A02F #2FB45D #2F43B4 #B42F86
split-complementary
#B4A02F #2F86B4 #5D2FB4
monochromatic
#534A16 #837522 #B4A02F #D1BE4F #DED080

Accessibility & contrast

On white

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

On black

8.01
#B4A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A02F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A02F#FFFFFF#000000##000000
##B4A02F1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4a02f;
/* rgb */ color: rgb(180, 160, 47);
/* oklch */ color: oklch(70.3% 0.130 98.8);
Tailwind
colors: {
  custom: {
    50: '#cebb70',
    500: '#b4a02f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a02f;
$custom-light: #cebb70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a02f",
  "rgb": {
    "r": 180,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 50.977,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70338,
    "c": 0.12962,
    "h": 98.8
  },
  "luminance": 0.3505
}

Semantic roles & 50–950 ramp

primary
#B4A02F
secondary
#7884C7
accent
#5DE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B4A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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