#B4AF2E#B4AF2E

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

Color values

HEX#B4AF2E
RGBrgb(180, 175, 46)
HSLhsl(58, 59%, 44%)
HSVhsv(58, 74%, 71%)
CMYKcmyk(0%, 2.8%, 74.4%, 29.4%)
CIE-LABlab(69.87, -12.95, 62.28)
CIE-LCHlch(69.87, 63.61, 101.74°)
OKLaboklab(73.58% -0.0423 0.1369)
OKLCHoklch(73.58% 0.143 107.2)
XYZxyz(34.6469, 40.5617, 8.5884)
Luminance0.4056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF2E #2E33B4
analogous
#B46C2E #B4AF2E #76B42E
triadic
#B4AF2E #2EB4AF #AF2EB4
tetradic
#B4AF2E #2EB46C #2E33B4 #B42E76
square
#B4AF2E #2EB46C #2E33B4 #B42E76
split-complementary
#B4AF2E #2E76B4 #6C2EB4
monochromatic
#535015 #838022 #B4AF2E #D2CD4E #DEDB7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AF2E#FFFFFF#000000##000000
##B4AF2E1.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4af2e;
/* rgb */ color: rgb(180, 175, 46);
/* oklch */ color: oklch(73.6% 0.143 107.2);
Tailwind
colors: {
  custom: {
    50: '#cec671',
    500: '#b4af2e',
    950: '#000000',
  },
}
SCSS
$custom: #b4af2e;
$custom-light: #cec671;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af2e",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 57.761,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.7358,
    "c": 0.14326,
    "h": 107.2
  },
  "luminance": 0.4056
}

Semantic roles & 50–950 ramp

primary
#B4AF2E
secondary
#777AC7
accent
#4BE245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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