#B2AF40#B2AF40

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

Color values

HEX#B2AF40
RGBrgb(178, 175, 64)
HSLhsl(58, 47%, 47%)
HSVhsv(58, 64%, 70%)
CMYKcmyk(0%, 1.7%, 64%, 30.2%)
CIE-LABlab(69.82, -12.85, 55.27)
CIE-LCHlch(69.82, 56.74, 103.09°)
OKLaboklab(73.54% -0.0401 0.1252)
OKLCHoklch(73.54% 0.131 107.7)
XYZxyz(34.6166, 40.4962, 10.8426)
Luminance0.4049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF40 #4043B2
analogous
#B27640 #B2AF40 #7CB240
triadic
#B2AF40 #40B2AF #AF40B2
tetradic
#B2AF40 #40B276 #4043B2 #B2407C
square
#B2AF40 #40B276 #4043B2 #B2407C
split-complementary
#B2AF40 #407CB2 #7640B2
monochromatic
#585620 #858330 #B2AF40 #C8C667 #D8D794

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF40#FFFFFF#000000##000000
##B2AF401.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)
#BDA832
Deuteranopia (green-blind)
#BFAD47
Tritanopia (blue-blind)
#BEA498
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2af40;
/* rgb */ color: rgb(178, 175, 64);
/* oklch */ color: oklch(73.5% 0.131 107.7);
Tailwind
colors: {
  custom: {
    50: '#ccc67a',
    500: '#b2af40',
    950: '#000000',
  },
}
SCSS
$custom: #b2af40;
$custom-light: #ccc67a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af40",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 58.421,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.73541,
    "c": 0.13148,
    "h": 107.7
  },
  "luminance": 0.40495
}

Semantic roles & 50–950 ramp

primary
#B2AF40
secondary
#8A8BC4
accent
#55D751
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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