#B4AF2F#B4AF2F

#B4AF2F 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#B4AF2F
RGBrgb(180, 175, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 74%, 71%)
CMYKcmyk(0%, 2.8%, 73.9%, 29.4%)
CIE-LABlab(69.87, -12.90, 61.94)
CIE-LCHlch(69.87, 63.27, 101.77°)
OKLaboklab(73.59% -0.0421 0.1363)
OKLCHoklch(73.59% 0.143 107.2)
XYZxyz(34.6668, 40.5697, 8.6934)
Luminance0.4057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF2F #2F34B4
analogous
#B46C2F #B4AF2F #77B42F
triadic
#B4AF2F #2FB4AF #AF2FB4
tetradic
#B4AF2F #2FB46C #2F34B4 #B42F77
square
#B4AF2F #2FB46C #2F34B4 #B42F77
split-complementary
#B4AF2F #2F77B4 #6C2FB4
monochromatic
#535116 #838022 #B4AF2F #D1CC4F #DEDA80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AF2F#FFFFFF#000000##000000
##B4AF2F1.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)
#BEA815
Deuteranopia (green-blind)
#C0AD39
Tritanopia (blue-blind)
#C1A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af2f;
/* rgb */ color: rgb(180, 175, 47);
/* oklch */ color: oklch(73.6% 0.143 107.2);
Tailwind
colors: {
  custom: {
    50: '#cec671',
    500: '#b4af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b4af2f;
$custom-light: #cec671;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af2f",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 57.744,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73586,
    "c": 0.14268,
    "h": 107.2
  },
  "luminance": 0.40568
}

Semantic roles & 50–950 ramp

primary
#B4AF2F
secondary
#787BC7
accent
#4CE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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