#B4AF2D#B4AF2D

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

Color values

HEX#B4AF2D
RGBrgb(180, 175, 45)
HSLhsl(58, 60%, 44%)
HSVhsv(58, 75%, 71%)
CMYKcmyk(0%, 2.8%, 75%, 29.4%)
CIE-LABlab(69.86, -12.99, 62.61)
CIE-LCHlch(69.86, 63.94, 101.72°)
OKLaboklab(73.57% -0.0425 0.1374)
OKLCHoklch(73.57% 0.144 107.2)
XYZxyz(34.6274, 40.5539, 8.4858)
Luminance0.4055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF2D #2D32B4
analogous
#B46C2D #B4AF2D #76B42D
triadic
#B4AF2D #2DB4AF #AF2DB4
tetradic
#B4AF2D #2DB46C #2D32B4 #B42D76
square
#B4AF2D #2DB46C #2D32B4 #B42D76
split-complementary
#B4AF2D #2D76B4 #6C2DB4
monochromatic
#525015 #837F21 #B4AF2D #D2CD4C #DEDB7D

Accessibility & contrast

On white

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

On black

9.11
#B4AF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF2D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF2D#FFFFFF#000000##000000
##B4AF2D1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4af2d;
/* rgb */ color: rgb(180, 175, 45);
/* oklch */ color: oklch(73.6% 0.144 107.2);
Tailwind
colors: {
  custom: {
    50: '#cec670',
    500: '#b4af2d',
    950: '#000000',
  },
}
SCSS
$custom: #b4af2d;
$custom-light: #cec670;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af2d",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 57.778,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.73574,
    "c": 0.14382,
    "h": 107.2
  },
  "luminance": 0.40553
}

Semantic roles & 50–950 ramp

primary
#B4AF2D
secondary
#7679C7
accent
#4BE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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