#B4AF40#B4AF40

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

Color values

HEX#B4AF40
RGBrgb(180, 175, 64)
HSLhsl(57, 48%, 48%)
HSVhsv(57, 64%, 71%)
CMYKcmyk(0%, 2.8%, 64.4%, 29.4%)
CIE-LABlab(69.99, -11.99, 55.49)
CIE-LCHlch(69.99, 56.78, 102.19°)
OKLaboklab(73.72% -0.0378 0.1257)
OKLCHoklch(73.72% 0.131 106.7)
XYZxyz(35.0790, 40.7346, 10.8642)
Luminance0.4073 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF40 #4045B4
analogous
#B47540 #B4AF40 #7FB440
triadic
#B4AF40 #40B4AF #AF40B4
tetradic
#B4AF40 #40B475 #4045B4 #B4407F
square
#B4AF40 #40B475 #4045B4 #B4407F
split-complementary
#B4AF40 #407FB4 #7540B4
monochromatic
#5A5720 #878330 #B4AF40 #C9C568 #D9D695

Accessibility & contrast

On white

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

On black

9.15
#B4AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF40
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF40#FFFFFF#000000##000000
##B4AF401.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA932
Deuteranopia (green-blind)
#C0AD47
Tritanopia (blue-blind)
#C1A498
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af40;
/* rgb */ color: rgb(180, 175, 64);
/* oklch */ color: oklch(73.7% 0.131 106.7);
Tailwind
colors: {
  custom: {
    50: '#cdc67a',
    500: '#b4af40',
    950: '#000000',
  },
}
SCSS
$custom: #b4af40;
$custom-light: #cdc67a;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af40",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 57.414,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.73716,
    "c": 0.1312,
    "h": 106.7
  },
  "luminance": 0.40733
}

Semantic roles & 50–950 ramp

primary
#B4AF40
secondary
#8B8DC5
accent
#56D751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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