#A5B318#A5B318

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

Color values

HEX#A5B318
RGBrgb(165, 179, 24)
HSLhsl(65, 76%, 40%)
HSVhsv(65, 87%, 70%)
CMYKcmyk(7.8%, 0%, 86.6%, 29.8%)
CIE-LABlab(69.69, -22.22, 67.74)
CIE-LCHlch(69.69, 71.29, 108.16°)
OKLaboklab(73.11% -0.0689 0.1453)
OKLCHoklch(73.11% 0.161 115.4)
XYZxyz(31.8030, 40.3060, 6.9685)
Luminance0.4031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B318 #2618B3
analogous
#B37318 #A5B318 #58B318
triadic
#A5B318 #18A5B3 #B318A5
tetradic
#A5B318 #18B373 #2618B3 #B31858
square
#A5B318 #18B373 #2618B3 #B31858
split-complementary
#A5B318 #1858B3 #7318B3
monochromatic
#42470A #737D11 #A5B318 #D1E226 #DCE95C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B318#FFFFFF#000000##000000
##A5B3181.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)
#C0AB2B
Tritanopia (blue-blind)
#B0A898
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b318;
/* rgb */ color: rgb(165, 179, 24);
/* oklch */ color: oklch(73.1% 0.161 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c968',
    500: '#a5b318',
    950: '#000000',
  },
}
SCSS
$custom: #a5b318;
$custom-light: #c4c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b318",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 24
  },
  "hsl": {
    "h": 65.419,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.7311,
    "c": 0.16083,
    "h": 115.4
  },
  "luminance": 0.40305
}

Semantic roles & 50–950 ramp

primary
#A5B318
secondary
#645ACD
accent
#35F346
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B318

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

Preview Lab → · Contrast checker → · Palette generator →

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