#A5B31D#A5B31D

#A5B31D is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.1% C 0.159 H 115.4°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#A5B31D
RGBrgb(165, 179, 29)
HSLhsl(66, 72%, 41%)
HSVhsv(66, 84%, 70%)
CMYKcmyk(7.8%, 0%, 83.8%, 29.8%)
CIE-LABlab(69.70, -22.08, 66.63)
CIE-LCHlch(69.70, 70.20, 108.34°)
OKLaboklab(73.13% -0.0682 0.1437)
OKLCHoklch(73.13% 0.159 115.4)
XYZxyz(31.8599, 40.3288, 7.2681)
Luminance0.4033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B31D #2B1DB3
analogous
#B3761D #A5B31D #5AB31D
triadic
#A5B31D #1DA5B3 #B31DA5
tetradic
#A5B31D #1DB376 #2B1DB3 #B31D5A
square
#A5B31D #1DB376 #2B1DB3 #B31D5A
split-complementary
#A5B31D #1D5AB3 #761DB3
monochromatic
#444A0C #747E14 #A5B31D #CDDD30 #DAE664

Accessibility & contrast

On white

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

On black

9.07
#A5B31D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B31D
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B31D#FFFFFF#000000##000000
##A5B31D1.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BFAB2E
Tritanopia (blue-blind)
#B0A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b31d;
/* rgb */ color: rgb(165, 179, 29);
/* oklch */ color: oklch(73.1% 0.159 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c96a',
    500: '#a5b31d',
    950: '#000000',
  },
}
SCSS
$custom: #a5b31d;
$custom-light: #c4c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b31d",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 65.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.73128,
    "c": 0.1591,
    "h": 115.4
  },
  "luminance": 0.40328
}

Semantic roles & 50–950 ramp

primary
#A5B31D
secondary
#6B61CB
accent
#39EF4A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B31D

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

Preview Lab → · Contrast checker → · Palette generator →

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