#B4AF2A#B4AF2A

#B4AF2A is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.6% C 0.145 H 107.2°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#B4AF2A
RGBrgb(180, 175, 42)
HSLhsl(58, 62%, 44%)
HSVhsv(58, 77%, 71%)
CMYKcmyk(0%, 2.8%, 76.7%, 29.4%)
CIE-LABlab(69.85, -13.11, 63.58)
CIE-LCHlch(69.85, 64.92, 101.65°)
OKLaboklab(73.56% -0.0431 0.1389)
OKLCHoklch(73.56% 0.145 107.2)
XYZxyz(34.5717, 40.5316, 8.1923)
Luminance0.4053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF2A #2A2FB4
analogous
#B46A2A #B4AF2A #74B42A
triadic
#B4AF2A #2AB4AF #AF2AB4
tetradic
#B4AF2A #2AB46A #2A2FB4 #B42A74
square
#B4AF2A #2AB46A #2A2FB4 #B42A74
split-complementary
#B4AF2A #2A74B4 #6A2AB4
monochromatic
#514F13 #827F1E #B4AF2A #D4CF47 #E0DC79

Accessibility & contrast

On white

2.31
#B4AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#B4AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF2A
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF2A#FFFFFF#000000##000000
##B4AF2A1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA806
Deuteranopia (green-blind)
#C1AD35
Tritanopia (blue-blind)
#C1A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af2a;
/* rgb */ color: rgb(180, 175, 42);
/* oklch */ color: oklch(73.6% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#cec66f',
    500: '#b4af2a',
    950: '#000000',
  },
}
SCSS
$custom: #b4af2a;
$custom-light: #cec66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af2a",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 57.826,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73556,
    "c": 0.14543,
    "h": 107.2
  },
  "luminance": 0.4053
}

Semantic roles & 50–950 ramp

primary
#B4AF2A
secondary
#7275C8
accent
#48E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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