#B1AF2A#B1AF2A

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

Color values

HEX#B1AF2A
RGBrgb(177, 175, 42)
HSLhsl(59, 62%, 43%)
HSVhsv(59, 76%, 69%)
CMYKcmyk(0%, 1.1%, 76.3%, 30.6%)
CIE-LABlab(69.59, -14.42, 63.25)
CIE-LCHlch(69.59, 64.88, 102.84°)
OKLaboklab(73.29% -0.0466 0.1383)
OKLCHoklch(73.29% 0.146 108.6)
XYZxyz(33.8807, 40.1753, 8.1600)
Luminance0.4017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF2A #2A2CB1
analogous
#B16B2A #B1AF2A #6FB12A
triadic
#B1AF2A #2AB1AF #AF2AB1
tetradic
#B1AF2A #2AB16B #2A2CB1 #B12A6F
square
#B1AF2A #2AB16B #2A2CB1 #B12A6F
split-complementary
#B1AF2A #2A6FB1 #6B2AB1
monochromatic
#4E4D13 #807E1E #B1AF2A #D3D145 #DFDD77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF2A#FFFFFF#000000##000000
##B1AF2A1.002.329.039.03
#FFFFFF2.321.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1af2a;
/* rgb */ color: rgb(177, 175, 42);
/* oklch */ color: oklch(73.3% 0.146 108.6);
Tailwind
colors: {
  custom: {
    50: '#ccc66f',
    500: '#b1af2a',
    950: '#000000',
  },
}
SCSS
$custom: #b1af2a;
$custom-light: #ccc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af2a",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 59.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73294,
    "c": 0.14597,
    "h": 108.6
  },
  "luminance": 0.40174
}

Semantic roles & 50–950 ramp

primary
#B1AF2A
secondary
#7072C6
accent
#45E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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