#B4AF27#B4AF27

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

Color values

HEX#B4AF27
RGBrgb(180, 175, 39)
HSLhsl(58, 64%, 43%)
HSVhsv(58, 78%, 71%)
CMYKcmyk(0%, 2.8%, 78.3%, 29.4%)
CIE-LABlab(69.83, -13.23, 64.50)
CIE-LCHlch(69.83, 65.84, 101.59°)
OKLaboklab(73.54% -0.0437 0.1403)
OKLCHoklch(73.54% 0.147 107.3)
XYZxyz(34.5200, 40.5110, 7.9201)
Luminance0.4051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF27 #272CB4
analogous
#B46827 #B4AF27 #73B427
triadic
#B4AF27 #27B4AF #AF27B4
tetradic
#B4AF27 #27B468 #272CB4 #B42773
square
#B4AF27 #27B468 #272CB4 #B42773
split-complementary
#B4AF27 #2773B4 #6827B4
monochromatic
#4F4D11 #827E1C #B4AF27 #D6D142 #E1DD74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AF27#FFFFFF#000000##000000
##B4AF271.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)
#C2A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af27;
/* rgb */ color: rgb(180, 175, 39);
/* oklch */ color: oklch(73.5% 0.147 107.3);
Tailwind
colors: {
  custom: {
    50: '#cec66e',
    500: '#b4af27',
    950: '#000000',
  },
}
SCSS
$custom: #b4af27;
$custom-light: #cec66e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af27",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 57.872,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.7354,
    "c": 0.14694,
    "h": 107.3
  },
  "luminance": 0.4051
}

Semantic roles & 50–950 ramp

primary
#B4AF27
secondary
#6F72C8
accent
#46E740
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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