#B1AF1D#B1AF1D

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

Color values

HEX#B1AF1D
RGBrgb(177, 175, 29)
HSLhsl(59, 72%, 40%)
HSVhsv(59, 84%, 69%)
CMYKcmyk(0%, 1.1%, 83.6%, 30.6%)
CIE-LABlab(69.54, -14.87, 66.88)
CIE-LCHlch(69.54, 68.51, 102.53°)
OKLaboklab(73.23% -0.0488 0.1437)
OKLCHoklch(73.23% 0.152 108.8)
XYZxyz(33.6846, 40.0969, 7.1273)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF1D #1D1FB1
analogous
#B1651D #B1AF1D #69B11D
triadic
#B1AF1D #1DB1AF #AF1DB1
tetradic
#B1AF1D #1DB165 #1D1FB1 #B11D69
square
#B1AF1D #1DB165 #1D1FB1 #B11D69
split-complementary
#B1AF1D #1D69B1 #651DB1
monochromatic
#48470C #7C7B14 #B1AF1D #DDDA2E #E5E463

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF1D#FFFFFF#000000##000000
##B1AF1D1.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)
#C0AC2C
Tritanopia (blue-blind)
#BEA395
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b1af1d;
/* rgb */ color: rgb(177, 175, 29);
/* oklch */ color: oklch(73.2% 0.152 108.8);
Tailwind
colors: {
  custom: {
    50: '#ccc66a',
    500: '#b1af1d',
    950: '#000000',
  },
}
SCSS
$custom: #b1af1d;
$custom-light: #ccc66a;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af1d",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 29
  },
  "hsl": {
    "h": 59.189,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73231,
    "c": 0.1518,
    "h": 108.8
  },
  "luminance": 0.40096
}

Semantic roles & 50–950 ramp

primary
#B1AF1D
secondary
#6061CA
accent
#3CEF39
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B1AF1D

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

Preview Lab → · Contrast checker → · Palette generator →

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