#B1AF24#B1AF24

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

Color values

HEX#B1AF24
RGBrgb(177, 175, 36)
HSLhsl(59, 66%, 42%)
HSVhsv(59, 80%, 69%)
CMYKcmyk(0%, 1.1%, 79.7%, 30.6%)
CIE-LABlab(69.57, -14.65, 65.05)
CIE-LCHlch(69.57, 66.68, 102.69°)
OKLaboklab(73.26% -0.0477 0.1411)
OKLCHoklch(73.26% 0.149 108.7)
XYZxyz(33.7812, 40.1355, 7.6362)
Luminance0.4013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF24 #2426B1
analogous
#B16924 #B1AF24 #6DB124
triadic
#B1AF24 #24B1AF #AF24B1
tetradic
#B1AF24 #24B169 #2426B1 #B1246D
square
#B1AF24 #24B169 #2426B1 #B1246D
split-complementary
#B1AF24 #246DB1 #6924B1
monochromatic
#4B4A0F #7E7D1A #B1AF24 #D7D53B #E1E06E

Accessibility & contrast

On white

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

On black

9.03
#B1AF24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AF24
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AF24#FFFFFF#000000##000000
##B1AF241.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1af24;
/* rgb */ color: rgb(177, 175, 36);
/* oklch */ color: oklch(73.3% 0.149 108.7);
Tailwind
colors: {
  custom: {
    50: '#ccc66c',
    500: '#b1af24',
    950: '#000000',
  },
}
SCSS
$custom: #b1af24;
$custom-light: #ccc66c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af24",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 36
  },
  "hsl": {
    "h": 59.149,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.73262,
    "c": 0.14891,
    "h": 108.7
  },
  "luminance": 0.40134
}

Semantic roles & 50–950 ramp

primary
#B1AF24
secondary
#696AC8
accent
#41E93F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #B1AF24

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

Preview Lab → · Contrast checker → · Palette generator →

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