#B1AF25#B1AF25

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

Color values

HEX#B1AF25
RGBrgb(177, 175, 37)
HSLhsl(59, 65%, 42%)
HSVhsv(59, 79%, 69%)
CMYKcmyk(0%, 1.1%, 79.1%, 30.6%)
CIE-LABlab(69.57, -14.61, 64.76)
CIE-LCHlch(69.57, 66.39, 102.71°)
OKLaboklab(73.27% -0.0476 0.1406)
OKLCHoklch(73.27% 0.148 108.7)
XYZxyz(33.7967, 40.1417, 7.7178)
Luminance0.4014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF25 #2527B1
analogous
#B16925 #B1AF25 #6DB125
triadic
#B1AF25 #25B1AF #AF25B1
tetradic
#B1AF25 #25B169 #2527B1 #B1256D
square
#B1AF25 #25B169 #2527B1 #B1256D
split-complementary
#B1AF25 #256DB1 #6925B1
monochromatic
#4C4B10 #7E7D1A #B1AF25 #D6D43D #E1DF6F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF25#FFFFFF#000000##000000
##B1AF251.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: #b1af25;
/* rgb */ color: rgb(177, 175, 37);
/* oklch */ color: oklch(73.3% 0.148 108.7);
Tailwind
colors: {
  custom: {
    50: '#ccc66d',
    500: '#b1af25',
    950: '#000000',
  },
}
SCSS
$custom: #b1af25;
$custom-light: #ccc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af25",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 37
  },
  "hsl": {
    "h": 59.143,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.73267,
    "c": 0.14845,
    "h": 108.7
  },
  "luminance": 0.40141
}

Semantic roles & 50–950 ramp

primary
#B1AF25
secondary
#6A6BC8
accent
#42E83F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #B1AF25

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

Preview Lab → · Contrast checker → · Palette generator →

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