#B1AF28#B1AF28

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

Color values

HEX#B1AF28
RGBrgb(177, 175, 40)
HSLhsl(59, 63%, 43%)
HSVhsv(59, 77%, 69%)
CMYKcmyk(0%, 1.1%, 77.4%, 30.6%)
CIE-LABlab(69.58, -14.50, 63.88)
CIE-LCHlch(69.58, 65.50, 102.79°)
OKLaboklab(73.28% -0.047 0.1393)
OKLCHoklch(73.28% 0.147 108.7)
XYZxyz(33.8458, 40.1614, 7.9761)
Luminance0.4016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF28 #282AB1
analogous
#B16A28 #B1AF28 #6FB128
triadic
#B1AF28 #28B1AF #AF28B1
tetradic
#B1AF28 #28B16A #282AB1 #B1286F
square
#B1AF28 #28B16A #282AB1 #B1286F
split-complementary
#B1AF28 #286FB1 #6A28B1
monochromatic
#4D4C11 #7F7E1D #B1AF28 #D4D242 #E0DE74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF28#FFFFFF#000000##000000
##B1AF281.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)
#C0AC34
Tritanopia (blue-blind)
#BEA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b1af28;
/* rgb */ color: rgb(177, 175, 40);
/* oklch */ color: oklch(73.3% 0.147 108.7);
Tailwind
colors: {
  custom: {
    50: '#ccc66e',
    500: '#b1af28',
    950: '#000000',
  },
}
SCSS
$custom: #b1af28;
$custom-light: #ccc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af28",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 59.124,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.73283,
    "c": 0.14699,
    "h": 108.7
  },
  "luminance": 0.4016
}

Semantic roles & 50–950 ramp

primary
#B1AF28
secondary
#6E6FC7
accent
#44E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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