#A5AC21#A5AC21

#A5AC21 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.6% C 0.150 H 112.7°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#A5AC21
RGBrgb(165, 172, 33)
HSLhsl(63, 68%, 40%)
HSVhsv(63, 81%, 67%)
CMYKcmyk(4.1%, 0%, 80.8%, 32.5%)
CIE-LABlab(67.74, -18.45, 63.91)
CIE-LCHlch(67.74, 66.52, 106.10°)
OKLaboklab(71.56% -0.0579 0.1386)
OKLCHoklch(71.56% 0.15 112.7)
XYZxyz(30.5451, 37.6149, 7.0899)
Luminance0.3761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AC21 #2821AC
analogous
#AC6E21 #A5AC21 #5FAC21
triadic
#A5AC21 #21A5AC #AC21A5
tetradic
#A5AC21 #21AC6E #2821AC #AC215F
square
#A5AC21 #21AC6E #2821AC #AC215F
split-complementary
#A5AC21 #215FAC #6E21AC
monochromatic
#42450D #747917 #A5AC21 #CFD832 #DBE266

Accessibility & contrast

On white

2.46
#A5AC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#A5AC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AC21
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AC21#FFFFFF#000000##000000
##A5AC211.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BAA62F
Tritanopia (blue-blind)
#B1A193
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a5ac21;
/* rgb */ color: rgb(165, 172, 33);
/* oklch */ color: oklch(71.6% 0.150 112.7);
Tailwind
colors: {
  custom: {
    50: '#c4c46a',
    500: '#a5ac21',
    950: '#000000',
  },
}
SCSS
$custom: #a5ac21;
$custom-light: #c4c46a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ac21",
  "rgb": {
    "r": 165,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 63.022,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.71555,
    "c": 0.15017,
    "h": 112.7
  },
  "luminance": 0.37614
}

Semantic roles & 50–950 ramp

primary
#A5AC21
secondary
#6762C7
accent
#3DEB46
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5AC21

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

Preview Lab → · Contrast checker → · Palette generator →

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