#B1AF2F#B1AF2F

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

Color values

HEX#B1AF2F
RGBrgb(177, 175, 47)
HSLhsl(59, 58%, 44%)
HSVhsv(59, 73%, 69%)
CMYKcmyk(0%, 1.1%, 73.4%, 30.6%)
CIE-LABlab(69.62, -14.21, 61.61)
CIE-LCHlch(69.62, 63.23, 102.98°)
OKLaboklab(73.32% -0.0456 0.1358)
OKLCHoklch(73.32% 0.143 108.6)
XYZxyz(33.9758, 40.2134, 8.6610)
Luminance0.4021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF2F #2F31B1
analogous
#B16E2F #B1AF2F #72B12F
triadic
#B1AF2F #2FB1AF #AF2FB1
tetradic
#B1AF2F #2FB16E #2F31B1 #B12F72
square
#B1AF2F #2FB16E #2F31B1 #B12F72
split-complementary
#B1AF2F #2F72B1 #6E2FB1
monochromatic
#504F15 #817F22 #B1AF2F #D0CE4D #DDDB7E

Accessibility & contrast

On white

2.32
#B1AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#B1AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AF2F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AF2F#FFFFFF#000000##000000
##B1AF2F1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA815
Deuteranopia (green-blind)
#BFAC39
Tritanopia (blue-blind)
#BEA496
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b1af2f;
/* rgb */ color: rgb(177, 175, 47);
/* oklch */ color: oklch(73.3% 0.143 108.6);
Tailwind
colors: {
  custom: {
    50: '#ccc671',
    500: '#b1af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b1af2f;
$custom-light: #ccc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af2f",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 59.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73324,
    "c": 0.14319,
    "h": 108.6
  },
  "luminance": 0.40212
}

Semantic roles & 50–950 ramp

primary
#B1AF2F
secondary
#7678C5
accent
#49E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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