#A5B221#A5B221

#A5B221 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 72.9% C 0.156 H 115.0°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#A5B221
RGBrgb(165, 178, 33)
HSLhsl(65, 69%, 41%)
HSVhsv(65, 81%, 70%)
CMYKcmyk(7.3%, 0%, 81.5%, 30.2%)
CIE-LABlab(69.43, -21.46, 65.39)
CIE-LCHlch(69.43, 68.82, 108.17°)
OKLaboklab(72.92% -0.0662 0.1417)
OKLCHoklch(72.92% 0.156 115)
XYZxyz(31.7129, 39.9505, 7.4792)
Luminance0.3995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B221 #2E21B2
analogous
#B27721 #A5B221 #5DB221
triadic
#A5B221 #21A5B2 #B221A5
tetradic
#A5B221 #21B277 #2E21B2 #B2215D
square
#A5B221 #21B277 #2E21B2 #B2215D
split-complementary
#A5B221 #215DB2 #7721B2
monochromatic
#454B0E #757E17 #A5B221 #CBDA36 #D9E36A

Accessibility & contrast

On white

2.34
#A5B221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#A5B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B221
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B221#FFFFFF#000000##000000
##A5B2211.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BEAB30
Tritanopia (blue-blind)
#B0A798
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b221;
/* rgb */ color: rgb(165, 178, 33);
/* oklch */ color: oklch(72.9% 0.156 115.0);
Tailwind
colors: {
  custom: {
    50: '#c4c86b',
    500: '#a5b221',
    950: '#000000',
  },
}
SCSS
$custom: #a5b221;
$custom-light: #c4c86b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b221",
  "rgb": {
    "r": 165,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 65.379,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72917,
    "c": 0.15645,
    "h": 115
  },
  "luminance": 0.3995
}

Semantic roles & 50–950 ramp

primary
#A5B221
secondary
#6F66C9
accent
#3CEC4C
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B221

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

Preview Lab → · Contrast checker → · Palette generator →

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