#B4AF3A#B4AF3A

#B4AF3A is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.7% C 0.136 H 106.9°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#B4AF3A
RGBrgb(180, 175, 58)
HSLhsl(58, 51%, 47%)
HSVhsv(58, 68%, 71%)
CMYKcmyk(0%, 2.8%, 67.8%, 29.4%)
CIE-LABlab(69.94, -12.35, 57.91)
CIE-LCHlch(69.94, 59.21, 102.04°)
OKLaboklab(73.67% -0.0394 0.1298)
OKLCHoklch(73.67% 0.136 106.9)
XYZxyz(34.9174, 40.6699, 10.0129)
Luminance0.4067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF3A #3A3FB4
analogous
#B4723A #B4AF3A #7CB43A
triadic
#B4AF3A #3AB4AF #AF3AB4
tetradic
#B4AF3A #3AB472 #3A3FB4 #B43A7C
square
#B4AF3A #3AB472 #3A3FB4 #B43A7C
split-complementary
#B4AF3A #3A7CB4 #723AB4
monochromatic
#57551C #86822B #B4AF3A #CCC760 #DBD78E

Accessibility & contrast

On white

2.30
#B4AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#B4AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF3A
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF3A#FFFFFF#000000##000000
##B4AF3A1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA829
Deuteranopia (green-blind)
#C0AD42
Tritanopia (blue-blind)
#C1A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af3a;
/* rgb */ color: rgb(180, 175, 58);
/* oklch */ color: oklch(73.7% 0.136 106.9);
Tailwind
colors: {
  custom: {
    50: '#cec677',
    500: '#b4af3a',
    950: '#000000',
  },
}
SCSS
$custom: #b4af3a;
$custom-light: #cec677;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af3a",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 57.541,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.73665,
    "c": 0.13562,
    "h": 106.9
  },
  "luminance": 0.40669
}

Semantic roles & 50–950 ramp

primary
#B4AF3A
secondary
#8587C5
accent
#53DB4D
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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