#B1AF30#B1AF30

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

Color values

HEX#B1AF30
RGBrgb(177, 175, 48)
HSLhsl(59, 57%, 44%)
HSVhsv(59, 73%, 69%)
CMYKcmyk(0%, 1.1%, 72.9%, 30.6%)
CIE-LABlab(69.63, -14.16, 61.27)
CIE-LCHlch(69.63, 62.88, 103.01°)
OKLaboklab(73.33% -0.0453 0.1352)
OKLCHoklch(73.33% 0.143 108.5)
XYZxyz(33.9962, 40.2215, 8.7685)
Luminance0.4022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF30 #3032B1
analogous
#B16F30 #B1AF30 #73B130
triadic
#B1AF30 #30B1AF #AF30B1
tetradic
#B1AF30 #30B16F #3032B1 #B13073
square
#B1AF30 #30B16F #3032B1 #B13073
split-complementary
#B1AF30 #3073B1 #6F30B1
monochromatic
#515016 #817F23 #B1AF30 #CFCD4F #DCDB7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF30#FFFFFF#000000##000000
##B1AF301.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)
#BEA817
Deuteranopia (green-blind)
#BFAC3A
Tritanopia (blue-blind)
#BEA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b1af30;
/* rgb */ color: rgb(177, 175, 48);
/* oklch */ color: oklch(73.3% 0.143 108.5);
Tailwind
colors: {
  custom: {
    50: '#ccc672',
    500: '#b1af30',
    950: '#000000',
  },
}
SCSS
$custom: #b1af30;
$custom-light: #ccc672;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af30",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 59.07,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.7333,
    "c": 0.1426,
    "h": 108.5
  },
  "luminance": 0.4022
}

Semantic roles & 50–950 ramp

primary
#B1AF30
secondary
#7879C5
accent
#4AE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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