#A5B321#A5B321

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

Color values

HEX#A5B321
RGBrgb(165, 179, 33)
HSLhsl(66, 69%, 42%)
HSVhsv(66, 82%, 70%)
CMYKcmyk(7.8%, 0%, 81.6%, 29.8%)
CIE-LABlab(69.72, -21.96, 65.64)
CIE-LCHlch(69.72, 69.21, 108.49°)
OKLaboklab(73.15% -0.0676 0.1423)
OKLCHoklch(73.15% 0.158 115.4)
XYZxyz(31.9126, 40.3499, 7.5457)
Luminance0.4035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B321 #2F21B3
analogous
#B37821 #A5B321 #5CB321
triadic
#A5B321 #21A5B3 #B321A5
tetradic
#A5B321 #21B378 #2F21B3 #B3215C
square
#A5B321 #21B378 #2F21B3 #B3215C
split-complementary
#A5B321 #215CB3 #7821B3
monochromatic
#464C0E #757F17 #A5B321 #CBDA37 #D8E46B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B321#FFFFFF#000000##000000
##A5B3211.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)
#BFAB30
Tritanopia (blue-blind)
#B0A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b321;
/* rgb */ color: rgb(165, 179, 33);
/* oklch */ color: oklch(73.1% 0.158 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c96b',
    500: '#a5b321',
    950: '#000000',
  },
}
SCSS
$custom: #a5b321;
$custom-light: #c4c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b321",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 33
  },
  "hsl": {
    "h": 65.753,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.73145,
    "c": 0.15752,
    "h": 115.4
  },
  "luminance": 0.40349
}

Semantic roles & 50–950 ramp

primary
#A5B321
secondary
#7066CA
accent
#3CEC4D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B321

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

Preview Lab → · Contrast checker → · Palette generator →

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