#A5AD1F#A5AD1F

#A5AD1F is a light, vivid yellow. Relative luminance 0.380; OKLCH L 71.8% C 0.152 H 113.1°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#A5AD1F
RGBrgb(165, 173, 31)
HSLhsl(63, 70%, 40%)
HSVhsv(63, 82%, 68%)
CMYKcmyk(4.6%, 0%, 82.1%, 32.2%)
CIE-LABlab(68.01, -19.02, 64.69)
CIE-LCHlch(68.01, 67.42, 106.39°)
OKLaboklab(71.77% -0.0596 0.1399)
OKLCHoklch(71.77% 0.152 113.1)
XYZxyz(30.7090, 37.9861, 7.0104)
Luminance0.3799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AD1F #271FAD
analogous
#AD6E1F #A5AD1F #5EAD1F
triadic
#A5AD1F #1FA5AD #AD1FA5
tetradic
#A5AD1F #1FAD6E #271FAD #AD1F5E
square
#A5AD1F #1FAD6E #271FAD #AD1F5E
split-complementary
#A5AD1F #1F5EAD #6E1FAD
monochromatic
#42450C #747916 #A5AD1F #D0DA2F #DCE363

Accessibility & contrast

On white

2.44
#A5AD1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#A5AD1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AD1F
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AD1F#FFFFFF#000000##000000
##A5AD1F1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA400
Deuteranopia (green-blind)
#BBA72D
Tritanopia (blue-blind)
#B1A294
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #a5ad1f;
/* rgb */ color: rgb(165, 173, 31);
/* oklch */ color: oklch(71.8% 0.152 113.1);
Tailwind
colors: {
  custom: {
    50: '#c4c56a',
    500: '#a5ad1f',
    950: '#000000',
  },
}
SCSS
$custom: #a5ad1f;
$custom-light: #c4c56a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ad1f",
  "rgb": {
    "r": 165,
    "g": 173,
    "b": 31
  },
  "hsl": {
    "h": 63.38,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.71772,
    "c": 0.15206,
    "h": 113.1
  },
  "luminance": 0.37985
}

Semantic roles & 50–950 ramp

primary
#A5AD1F
secondary
#6660C8
accent
#3BEC45
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5AD1F

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

Preview Lab → · Contrast checker → · Palette generator →

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