#B2AF37#B2AF37

#B2AF37 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.5% C 0.138 H 107.9°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#B2AF37
RGBrgb(178, 175, 55)
HSLhsl(59, 53%, 46%)
HSVhsv(59, 69%, 70%)
CMYKcmyk(0%, 1.7%, 69.1%, 30.2%)
CIE-LABlab(69.75, -13.38, 58.83)
CIE-LCHlch(69.75, 60.34, 102.81°)
OKLaboklab(73.47% -0.0425 0.1313)
OKLCHoklch(73.47% 0.138 107.9)
XYZxyz(34.3809, 40.4019, 9.6010)
Luminance0.4040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF37 #373AB2
analogous
#B27237 #B2AF37 #77B237
triadic
#B2AF37 #37B2AF #AF37B2
tetradic
#B2AF37 #37B272 #373AB2 #B23777
square
#B2AF37 #37B272 #373AB2 #B23777
split-complementary
#B2AF37 #3777B2 #7237B2
monochromatic
#54531A #838129 #B2AF37 #CCC95A #DBD989

Accessibility & contrast

On white

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

On black

9.08
#B2AF37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF37
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF37#FFFFFF#000000##000000
##B2AF371.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA824
Deuteranopia (green-blind)
#BFAC3F
Tritanopia (blue-blind)
#BFA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af37;
/* rgb */ color: rgb(178, 175, 55);
/* oklch */ color: oklch(73.5% 0.138 107.9);
Tailwind
colors: {
  custom: {
    50: '#ccc675',
    500: '#b2af37',
    950: '#000000',
  },
}
SCSS
$custom: #b2af37;
$custom-light: #ccc675;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af37",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 55
  },
  "hsl": {
    "h": 58.537,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73467,
    "c": 0.13799,
    "h": 107.9
  },
  "luminance": 0.40401
}

Semantic roles & 50–950 ramp

primary
#B2AF37
secondary
#8082C5
accent
#4FDC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2AF37

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

Preview Lab → · Contrast checker → · Palette generator →

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