#B1AF2E#B1AF2E

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

Color values

HEX#B1AF2E
RGBrgb(177, 175, 46)
HSLhsl(59, 59%, 44%)
HSVhsv(59, 74%, 69%)
CMYKcmyk(0%, 1.1%, 74%, 30.6%)
CIE-LABlab(69.62, -14.25, 61.95)
CIE-LCHlch(69.62, 63.57, 102.95°)
OKLaboklab(73.32% -0.0458 0.1363)
OKLCHoklch(73.32% 0.144 108.6)
XYZxyz(33.9559, 40.2054, 8.5560)
Luminance0.4020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF2E #2E30B1
analogous
#B16D2E #B1AF2E #71B12E
triadic
#B1AF2E #2EB1AF #AF2EB1
tetradic
#B1AF2E #2EB16D #2E30B1 #B12E71
square
#B1AF2E #2EB16D #2E30B1 #B12E71
split-complementary
#B1AF2E #2E71B1 #6D2EB1
monochromatic
#504F15 #807F21 #B1AF2E #D0CE4C #DDDC7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF2E#FFFFFF#000000##000000
##B1AF2E1.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)
#BEA813
Deuteranopia (green-blind)
#C0AC38
Tritanopia (blue-blind)
#BEA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b1af2e;
/* rgb */ color: rgb(177, 175, 46);
/* oklch */ color: oklch(73.3% 0.144 108.6);
Tailwind
colors: {
  custom: {
    50: '#ccc671',
    500: '#b1af2e',
    950: '#000000',
  },
}
SCSS
$custom: #b1af2e;
$custom-light: #ccc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af2e",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 59.084,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73318,
    "c": 0.14377,
    "h": 108.6
  },
  "luminance": 0.40204
}

Semantic roles & 50–950 ramp

primary
#B1AF2E
secondary
#7576C6
accent
#48E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1AF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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