#B2AF3D#B2AF3D

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

Color values

HEX#B2AF3D
RGBrgb(178, 175, 61)
HSLhsl(58, 49%, 47%)
HSVhsv(58, 66%, 70%)
CMYKcmyk(0%, 1.7%, 65.7%, 30.2%)
CIE-LABlab(69.80, -13.04, 56.49)
CIE-LCHlch(69.80, 57.97, 102.99°)
OKLaboklab(73.52% -0.0409 0.1273)
OKLCHoklch(73.52% 0.134 107.8)
XYZxyz(34.5336, 40.4629, 10.4050)
Luminance0.4046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF3D #3D40B2
analogous
#B2753D #B2AF3D #7AB23D
triadic
#B2AF3D #3DB2AF #AF3DB2
tetradic
#B2AF3D #3DB275 #3D40B2 #B23D7A
square
#B2AF3D #3DB275 #3D40B2 #B23D7A
split-complementary
#B2AF3D #3D7AB2 #753DB2
monochromatic
#57551E #84822D #B2AF3D #C9C763 #D9D790

Accessibility & contrast

On white

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

On black

9.09
#B2AF3D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF3D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF3D#FFFFFF#000000##000000
##B2AF3D1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA82D
Deuteranopia (green-blind)
#BFAC44
Tritanopia (blue-blind)
#BEA498
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2af3d;
/* rgb */ color: rgb(178, 175, 61);
/* oklch */ color: oklch(73.5% 0.134 107.8);
Tailwind
colors: {
  custom: {
    50: '#ccc679',
    500: '#b2af3d',
    950: '#000000',
  },
}
SCSS
$custom: #b2af3d;
$custom-light: #ccc679;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af3d",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 61
  },
  "hsl": {
    "h": 58.462,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73515,
    "c": 0.13374,
    "h": 107.8
  },
  "luminance": 0.40462
}

Semantic roles & 50–950 ramp

primary
#B2AF3D
secondary
#8788C4
accent
#53D94F
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #B2AF3D

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

Preview Lab → · Contrast checker → · Palette generator →

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