#B1AF26#B1AF26

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

Color values

HEX#B1AF26
RGBrgb(177, 175, 38)
HSLhsl(59, 65%, 42%)
HSVhsv(59, 79%, 69%)
CMYKcmyk(0%, 1.1%, 78.5%, 30.6%)
CIE-LABlab(69.57, -14.57, 64.47)
CIE-LCHlch(69.57, 66.10, 102.74°)
OKLaboklab(73.27% -0.0474 0.1402)
OKLCHoklch(73.27% 0.148 108.7)
XYZxyz(33.8126, 40.1481, 7.8016)
Luminance0.4015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AF26 #2628B1
analogous
#B16A26 #B1AF26 #6DB126
triadic
#B1AF26 #26B1AF #AF26B1
tetradic
#B1AF26 #26B16A #2628B1 #B1266D
square
#B1AF26 #26B16A #2628B1 #B1266D
split-complementary
#B1AF26 #266DB1 #6A26B1
monochromatic
#4C4B10 #7F7D1B #B1AF26 #D6D43F #E0DF71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AF26#FFFFFF#000000##000000
##B1AF261.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1af26;
/* rgb */ color: rgb(177, 175, 38);
/* oklch */ color: oklch(73.3% 0.148 108.7);
Tailwind
colors: {
  custom: {
    50: '#ccc66d',
    500: '#b1af26',
    950: '#000000',
  },
}
SCSS
$custom: #b1af26;
$custom-light: #ccc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1af26",
  "rgb": {
    "r": 177,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 59.137,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.73272,
    "c": 0.14797,
    "h": 108.7
  },
  "luminance": 0.40147
}

Semantic roles & 50–950 ramp

primary
#B1AF26
secondary
#6B6DC7
accent
#43E840
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #B1AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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