#A5C21F#A5C21F

#A5C21F is a light, vivid yellow-green. Relative luminance 0.467; OKLCH L 76.6% C 0.175 H 120.2°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#A5C21F
RGBrgb(165, 194, 31)
HSLhsl(71, 72%, 44%)
HSVhsv(71, 84%, 76%)
CMYKcmyk(14.9%, 0%, 84%, 23.9%)
CIE-LABlab(73.99, -29.29, 69.81)
CIE-LCHlch(73.99, 75.70, 112.77°)
OKLaboklab(76.58% -0.0878 0.1509)
OKLCHoklch(76.58% 0.175 120.2)
XYZxyz(35.0569, 46.6820, 8.4597)
Luminance0.4668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5C21F #3C1FC2
analogous
#C28E1F #A5C21F #54C21F
triadic
#A5C21F #1FA5C2 #C21FA5
tetradic
#A5C21F #1FC28E #3C1FC2 #C21F54
square
#A5C21F #1FC28E #3C1FC2 #C21F54
split-complementary
#A5C21F #1F54C2 #8E1FC2
monochromatic
#4B580E #788D17 #A5C21F #C3E03E #D4E973

Accessibility & contrast

On white

2.03
#A5C21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#A5C21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5C21F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5C21F#FFFFFF#000000##000000
##A5C21F1.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB600
Deuteranopia (green-blind)
#CBB632
Tritanopia (blue-blind)
#AFB7A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #a5c21f;
/* rgb */ color: rgb(165, 194, 31);
/* oklch */ color: oklch(76.6% 0.175 120.2);
Tailwind
colors: {
  custom: {
    50: '#c4d46d',
    500: '#a5c21f',
    950: '#000000',
  },
}
SCSS
$custom: #a5c21f;
$custom-light: #c4d46d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5c21f",
  "rgb": {
    "r": 165,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 70.675,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.76578,
    "c": 0.17461,
    "h": 120.2
  },
  "luminance": 0.46682
}

Semantic roles & 50–950 ramp

primary
#A5C21F
secondary
#7F6DCF
accent
#39EF59
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131408
muted
#82827B

Preview Lab

Preview with #A5C21F

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

Preview Lab → · Contrast checker → · Palette generator →

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