#B5AF2D#B5AF2D

#B5AF2D is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.7% C 0.144 H 106.7°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#B5AF2D
RGBrgb(181, 175, 45)
HSLhsl(57, 60%, 44%)
HSVhsv(57, 75%, 71%)
CMYKcmyk(0%, 3.3%, 75.1%, 29%)
CIE-LABlab(69.95, -12.55, 62.72)
CIE-LCHlch(69.95, 63.96, 101.32°)
OKLaboklab(73.66% -0.0413 0.1376)
OKLCHoklch(73.66% 0.144 106.7)
XYZxyz(34.8611, 40.6744, 8.4967)
Luminance0.4067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AF2D #2D33B5
analogous
#B56B2D #B5AF2D #77B52D
triadic
#B5AF2D #2DB5AF #AF2DB5
tetradic
#B5AF2D #2DB56B #2D33B5 #B52D77
square
#B5AF2D #2DB56B #2D33B5 #B52D77
split-complementary
#B5AF2D #2D77B5 #6B2DB5
monochromatic
#535015 #848021 #B5AF2D #D3CD4D #DFDB7E

Accessibility & contrast

On white

2.30
#B5AF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#B5AF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AF2D
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AF2D#FFFFFF#000000##000000
##B5AF2D1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA810
Deuteranopia (green-blind)
#C1AD37
Tritanopia (blue-blind)
#C2A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b5af2d;
/* rgb */ color: rgb(181, 175, 45);
/* oklch */ color: oklch(73.7% 0.144 106.7);
Tailwind
colors: {
  custom: {
    50: '#cfc670',
    500: '#b5af2d',
    950: '#000000',
  },
}
SCSS
$custom: #b5af2d;
$custom-light: #cfc670;
$custom-dark: #000000;
JSON
{
  "hex": "#b5af2d",
  "rgb": {
    "r": 181,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 57.353,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73662,
    "c": 0.14366,
    "h": 106.7
  },
  "luminance": 0.40673
}

Semantic roles & 50–950 ramp

primary
#B5AF2D
secondary
#767AC7
accent
#4BE344
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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