#B1AF20#B1AF20

#B1AF20 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.2% C 0.151 H 108.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#B1AF20
RGBrgb(177, 175, 32)
HSLhsl(59, 69%, 41%)
HSVhsv(59, 82%, 69%)
CMYKcmyk(0%, 1.1%, 81.9%, 30.6%)
CIE-LABlab(69.55, -14.78, 66.13)
CIE-LCHlch(69.55, 67.76, 102.60°)
OKLaboklab(73.24% -0.0484 0.1427)
OKLCHoklch(73.24% 0.151 108.7)
XYZxyz(33.7235, 40.1125, 7.3323)
Luminance0.4011 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF20 #2022B1
analogous
#B16620 #B1AF20 #6AB120
triadic
#B1AF20 #20B1AF #AF20B1
tetradic
#B1AF20 #20B166 #2022B1 #B1206A
square
#B1AF20 #20B166 #2022B1 #B1206A
split-complementary
#B1AF20 #206AB1 #6620B1
monochromatic
#49490D #7D7C17 #B1AF20 #DAD834 #E4E268

Accessibility & contrast

On white

2.33
#B1AF20 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#B1AF20 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AF20
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AF20#FFFFFF#000000##000000
##B1AF201.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#C0AC2E
Tritanopia (blue-blind)
#BEA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b1af20;
/* rgb */ color: rgb(177, 175, 32);
/* oklch */ color: oklch(73.2% 0.151 108.7);
Tailwind
colors: {
  custom: {
    50: '#ccc66b',
    500: '#b1af20',
    950: '#000000',
  },
}
SCSS
$custom: #b1af20;
$custom-light: #ccc66b;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af20",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 32
  },
  "hsl": {
    "h": 59.172,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73244,
    "c": 0.15063,
    "h": 108.7
  },
  "luminance": 0.40111
}

Semantic roles & 50–950 ramp

primary
#B1AF20
secondary
#6465C9
accent
#3EEC3C
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B1AF20

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

Preview Lab → · Contrast checker → · Palette generator →

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