#A5B021#A5B021

#A5B021 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.5% C 0.154 H 114.3°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#A5B021
RGBrgb(165, 176, 33)
HSLhsl(65, 68%, 41%)
HSVhsv(65, 81%, 69%)
CMYKcmyk(6.2%, 0%, 81.3%, 31%)
CIE-LABlab(68.87, -20.46, 64.90)
CIE-LCHlch(68.87, 68.05, 107.50°)
OKLaboklab(72.46% -0.0635 0.1407)
OKLCHoklch(72.46% 0.154 114.3)
XYZxyz(31.3179, 39.1604, 7.3475)
Luminance0.3916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B021 #2C21B0
analogous
#B07321 #A5B021 #5EB021
triadic
#A5B021 #21A5B0 #B021A5
tetradic
#A5B021 #21B073 #2C21B0 #B0215E
square
#A5B021 #21B073 #2C21B0 #B0215E
split-complementary
#A5B021 #215EB0 #7321B0
monochromatic
#44490E #757C17 #A5B021 #CDD935 #D9E369

Accessibility & contrast

On white

2.38
#A5B021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#A5B021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B021
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B021#FFFFFF#000000##000000
##A5B0211.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA700
Deuteranopia (green-blind)
#BDA92F
Tritanopia (blue-blind)
#B0A596
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a5b021;
/* rgb */ color: rgb(165, 176, 33);
/* oklch */ color: oklch(72.5% 0.154 114.3);
Tailwind
colors: {
  custom: {
    50: '#c4c76b',
    500: '#a5b021',
    950: '#000000',
  },
}
SCSS
$custom: #a5b021;
$custom-light: #c4c76b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b021",
  "rgb": {
    "r": 165,
    "g": 176,
    "b": 33
  },
  "hsl": {
    "h": 64.615,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72462,
    "c": 0.15434,
    "h": 114.3
  },
  "luminance": 0.3916
}

Semantic roles & 50–950 ramp

primary
#A5B021
secondary
#6C64C8
accent
#3DEB4A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B021

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

Preview Lab → · Contrast checker → · Palette generator →

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