#ACC21F#ACC21F

#ACC21F is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.1% C 0.172 H 117.8°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#ACC21F
RGBrgb(172, 194, 31)
HSLhsl(68, 72%, 44%)
HSVhsv(68, 84%, 76%)
CMYKcmyk(11.3%, 0%, 84%, 23.9%)
CIE-LABlab(74.48, -26.39, 70.42)
CIE-LCHlch(74.48, 75.20, 110.54°)
OKLaboklab(77.1% -0.0802 0.152)
OKLCHoklch(77.1% 0.172 117.8)
XYZxyz(36.5533, 47.4536, 8.5299)
Luminance0.4745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ACC21F #351FC2
analogous
#C2871F #ACC21F #5BC21F
triadic
#ACC21F #1FACC2 #C21FAC
tetradic
#ACC21F #1FC287 #351FC2 #C21F5B
square
#ACC21F #1FC287 #351FC2 #C21F5B
split-complementary
#ACC21F #1F5BC2 #871FC2
monochromatic
#4E580E #7D8D17 #ACC21F #CAE03E #D9E973

Accessibility & contrast

On white

2.00
#ACC21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.49
#ACC21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ACC21F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ACC21F#FFFFFF#000000##000000
##ACC21F1.002.0010.4910.49
#FFFFFF2.001.0021.0021.00
#00000010.4921.001.001.00
##00000010.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #acc21f;
/* rgb */ color: rgb(172, 194, 31);
/* oklch */ color: oklch(77.1% 0.172 117.8);
Tailwind
colors: {
  custom: {
    50: '#c9d46d',
    500: '#acc21f',
    950: '#000000',
  },
}
SCSS
$custom: #acc21f;
$custom-light: #c9d46d;
$custom-dark: #000000;
JSON
{
  "hex": "#acc21f",
  "rgb": {
    "r": 172,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 68.098,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.771,
    "c": 0.17184,
    "h": 117.8
  },
  "luminance": 0.47453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #ACC21F

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

Preview Lab → · Contrast checker → · Palette generator →

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