#ABC21F#ABC21F

#ABC21F is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.0% C 0.172 H 118.2°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#ABC21F
RGBrgb(171, 194, 31)
HSLhsl(68, 72%, 44%)
HSVhsv(68, 84%, 76%)
CMYKcmyk(11.9%, 0%, 84%, 23.9%)
CIE-LABlab(74.41, -26.81, 70.33)
CIE-LCHlch(74.41, 75.27, 110.86°)
OKLaboklab(77.02% -0.0813 0.1518)
OKLCHoklch(77.02% 0.172 118.2)
XYZxyz(36.3346, 47.3408, 8.5196)
Luminance0.4734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABC21F #361FC2
analogous
#C2881F #ABC21F #5AC21F
triadic
#ABC21F #1FABC2 #C21FAB
tetradic
#ABC21F #1FC288 #361FC2 #C21F5A
square
#ABC21F #1FC288 #361FC2 #C21F5A
split-complementary
#ABC21F #1F5AC2 #881FC2
monochromatic
#4E580E #7C8D17 #ABC21F #C9E03E #D8E973

Accessibility & contrast

On white

2.01
#ABC21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#ABC21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABC21F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABC21F#FFFFFF#000000##000000
##ABC21F1.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB700
Deuteranopia (green-blind)
#CDB832
Tritanopia (blue-blind)
#B6B7A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #abc21f;
/* rgb */ color: rgb(171, 194, 31);
/* oklch */ color: oklch(77.0% 0.172 118.2);
Tailwind
colors: {
  custom: {
    50: '#c8d46d',
    500: '#abc21f',
    950: '#000000',
  },
}
SCSS
$custom: #abc21f;
$custom-light: #c8d46d;
$custom-dark: #000000;
JSON
{
  "hex": "#abc21f",
  "rgb": {
    "r": 171,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 68.466,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.77024,
    "c": 0.17222,
    "h": 118.2
  },
  "luminance": 0.4734
}

Semantic roles & 50–950 ramp

primary
#ABC21F
secondary
#7B6DCF
accent
#39EF52
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #ABC21F

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

Preview Lab → · Contrast checker → · Palette generator →

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