#B5AF2E#B5AF2E

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

Color values

HEX#B5AF2E
RGBrgb(181, 175, 46)
HSLhsl(57, 59%, 45%)
HSVhsv(57, 75%, 71%)
CMYKcmyk(0%, 3.3%, 74.6%, 29%)
CIE-LABlab(69.95, -12.51, 62.39)
CIE-LCHlch(69.95, 63.63, 101.34°)
OKLaboklab(73.67% -0.0411 0.1371)
OKLCHoklch(73.67% 0.143 106.7)
XYZxyz(34.8806, 40.6822, 8.5993)
Luminance0.4068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AF2E #2E34B5
analogous
#B56B2E #B5AF2E #78B52E
triadic
#B5AF2E #2EB5AF #AF2EB5
tetradic
#B5AF2E #2EB56B #2E34B5 #B52E78
square
#B5AF2E #2EB56B #2E34B5 #B52E78
split-complementary
#B5AF2E #2E78B5 #6B2EB5
monochromatic
#535115 #848022 #B5AF2E #D2CC4E #DEDA7F

Accessibility & contrast

On white

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

On black

9.14
#B5AF2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AF2E
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AF2E#FFFFFF#000000##000000
##B5AF2E1.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5af2e;
/* rgb */ color: rgb(181, 175, 46);
/* oklch */ color: oklch(73.7% 0.143 106.7);
Tailwind
colors: {
  custom: {
    50: '#cfc671',
    500: '#b5af2e',
    950: '#000000',
  },
}
SCSS
$custom: #b5af2e;
$custom-light: #cfc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b5af2e",
  "rgb": {
    "r": 181,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 57.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73668,
    "c": 0.1431,
    "h": 106.7
  },
  "luminance": 0.40681
}

Semantic roles & 50–950 ramp

primary
#B5AF2E
secondary
#787BC7
accent
#4CE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5AF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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