#B4AF38#B4AF38

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

Color values

HEX#B4AF38
RGBrgb(180, 175, 56)
HSLhsl(58, 53%, 46%)
HSVhsv(58, 69%, 71%)
CMYKcmyk(0%, 2.8%, 68.9%, 29.4%)
CIE-LABlab(69.93, -12.46, 58.68)
CIE-LCHlch(69.93, 59.99, 101.99°)
OKLaboklab(73.65% -0.0399 0.1311)
OKLCHoklch(73.65% 0.137 106.9)
XYZxyz(34.8675, 40.6499, 9.7502)
Luminance0.4065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF38 #383DB4
analogous
#B47138 #B4AF38 #7BB438
triadic
#B4AF38 #38B4AF #AF38B4
tetradic
#B4AF38 #38B471 #383DB4 #B4387B
square
#B4AF38 #38B471 #383DB4 #B4387B
split-complementary
#B4AF38 #387BB4 #7138B4
monochromatic
#57541B #858229 #B4AF38 #CDC85D #DBD88B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AF38#FFFFFF#000000##000000
##B4AF381.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)
#BEA826
Deuteranopia (green-blind)
#C0AD40
Tritanopia (blue-blind)
#C1A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af38;
/* rgb */ color: rgb(180, 175, 56);
/* oklch */ color: oklch(73.6% 0.137 106.9);
Tailwind
colors: {
  custom: {
    50: '#cec676',
    500: '#b4af38',
    950: '#000000',
  },
}
SCSS
$custom: #b4af38;
$custom-light: #cec676;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af38",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 57.581,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.73649,
    "c": 0.137,
    "h": 106.9
  },
  "luminance": 0.40649
}

Semantic roles & 50–950 ramp

primary
#B4AF38
secondary
#8285C5
accent
#52DC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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