#B4AF28#B4AF28

#B4AF28 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.5% C 0.146 H 107.3°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#B4AF28
RGBrgb(180, 175, 40)
HSLhsl(58, 64%, 43%)
HSVhsv(58, 78%, 71%)
CMYKcmyk(0%, 2.8%, 77.8%, 29.4%)
CIE-LABlab(69.84, -13.19, 64.20)
CIE-LCHlch(69.84, 65.54, 101.61°)
OKLaboklab(73.55% -0.0435 0.1398)
OKLCHoklch(73.55% 0.146 107.3)
XYZxyz(34.5368, 40.5177, 8.0085)
Luminance0.4052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF28 #282DB4
analogous
#B46928 #B4AF28 #73B428
triadic
#B4AF28 #28B4AF #AF28B4
tetradic
#B4AF28 #28B469 #282DB4 #B42873
square
#B4AF28 #28B469 #282DB4 #B42873
split-complementary
#B4AF28 #2873B4 #6928B4
monochromatic
#504E12 #827E1D #B4AF28 #D5D044 #E1DD76

Accessibility & contrast

On white

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

On black

9.10
#B4AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF28
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF28#FFFFFF#000000##000000
##B4AF281.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4af28;
/* rgb */ color: rgb(180, 175, 40);
/* oklch */ color: oklch(73.5% 0.146 107.3);
Tailwind
colors: {
  custom: {
    50: '#cec66e',
    500: '#b4af28',
    950: '#000000',
  },
}
SCSS
$custom: #b4af28;
$custom-light: #cec66e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af28",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 57.857,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73545,
    "c": 0.14645,
    "h": 107.3
  },
  "luminance": 0.40516
}

Semantic roles & 50–950 ramp

primary
#B4AF28
secondary
#7073C8
accent
#47E741
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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