#A5B317#A5B317

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

Color values

HEX#A5B317
RGBrgb(165, 179, 23)
HSLhsl(65, 77%, 40%)
HSVhsv(65, 87%, 70%)
CMYKcmyk(7.8%, 0%, 87.2%, 29.8%)
CIE-LABlab(69.68, -22.24, 67.94)
CIE-LCHlch(69.68, 71.49, 108.13°)
OKLaboklab(73.11% -0.069 0.1456)
OKLCHoklch(73.11% 0.161 115.3)
XYZxyz(31.7928, 40.3020, 6.9147)
Luminance0.4030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B317 #2517B3
analogous
#B37317 #A5B317 #57B317
triadic
#A5B317 #17A5B3 #B317A5
tetradic
#A5B317 #17B373 #2517B3 #B31757
square
#A5B317 #17B373 #2517B3 #B31757
split-complementary
#A5B317 #1757B3 #7317B3
monochromatic
#414709 #737D10 #A5B317 #D2E324 #DDEA5B

Accessibility & contrast

On white

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

On black

9.06
#A5B317 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B317
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B317#FFFFFF#000000##000000
##A5B3171.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b317;
/* rgb */ color: rgb(165, 179, 23);
/* oklch */ color: oklch(73.1% 0.161 115.3);
Tailwind
colors: {
  custom: {
    50: '#c4c968',
    500: '#a5b317',
    950: '#000000',
  },
}
SCSS
$custom: #a5b317;
$custom-light: #c4c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b317",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 23
  },
  "hsl": {
    "h": 65.385,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.73107,
    "c": 0.16114,
    "h": 115.3
  },
  "luminance": 0.40301
}

Semantic roles & 50–950 ramp

primary
#A5B317
secondary
#6358CD
accent
#34F445
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B317

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

Preview Lab → · Contrast checker → · Palette generator →

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