#B4AA2F#B4AA2F

#B4AA2F is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.138 H 104.6°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#B4AA2F
RGBrgb(180, 170, 47)
HSLhsl(55, 59%, 45%)
HSVhsv(55, 74%, 71%)
CMYKcmyk(0%, 5.6%, 73.9%, 29.4%)
CIE-LABlab(68.50, -10.31, 60.64)
CIE-LCHlch(68.50, 61.51, 99.65°)
OKLaboklab(72.5% -0.0348 0.1336)
OKLCHoklch(72.5% 0.138 104.6)
XYZxyz(33.7116, 38.6593, 8.3750)
Luminance0.3866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AA2F #2F39B4
analogous
#B4682F #B4AA2F #7BB42F
triadic
#B4AA2F #2FB4AA #AA2FB4
tetradic
#B4AA2F #2FB468 #2F39B4 #B42F7B
square
#B4AA2F #2FB468 #2F39B4 #B42F7B
split-complementary
#B4AA2F #2F7BB4 #682FB4
monochromatic
#534E16 #837C22 #B4AA2F #D1C74F #DED780

Accessibility & contrast

On white

2.41
#B4AA2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#B4AA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AA2F
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AA2F#FFFFFF#000000##000000
##B4AA2F1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A417
Deuteranopia (green-blind)
#BDAA38
Tritanopia (blue-blind)
#C29E92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b4aa2f;
/* rgb */ color: rgb(180, 170, 47);
/* oklch */ color: oklch(72.5% 0.138 104.6);
Tailwind
colors: {
  custom: {
    50: '#cec371',
    500: '#b4aa2f',
    950: '#000000',
  },
}
SCSS
$custom: #b4aa2f;
$custom-light: #cec371;
$custom-dark: #000000;
JSON
{
  "hex": "#b4aa2f",
  "rgb": {
    "r": 180,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 55.489,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72495,
    "c": 0.13804,
    "h": 104.6
  },
  "luminance": 0.38658
}

Semantic roles & 50–950 ramp

primary
#B4AA2F
secondary
#787EC7
accent
#52E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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