#ACC940#ACC940

#ACC940 is a light, vivid yellow-green. Relative luminance 0.509; OKLCH L 78.9% C 0.163 H 120.6°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#ACC940
RGBrgb(172, 201, 64)
HSLhsl(73, 56%, 52%)
HSVhsv(73, 68%, 79%)
CMYKcmyk(14.4%, 0%, 68.2%, 21.2%)
CIE-LABlab(76.63, -28.26, 62.16)
CIE-LCHlch(76.63, 68.28, 114.45°)
OKLaboklab(78.88% -0.0828 0.1399)
OKLCHoklch(78.88% 0.163 120.6)
XYZxyz(38.8259, 50.9142, 12.6315)
Luminance0.5091 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ACC940 #5D40C9
analogous
#C9A240 #ACC940 #68C940
triadic
#ACC940 #40ACC9 #C940AC
tetradic
#ACC940 #40C9A2 #5D40C9 #C94068
square
#ACC940 #40C9A2 #5D40C9 #C94068
split-complementary
#ACC940 #4068C9 #A240C9
monochromatic
#5E6F1F #879F2D #ACC940 #C1D670 #D5E49F

Accessibility & contrast

On white

1.88
#ACC940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#ACC940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ACC940
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ACC940#FFFFFF#000000##000000
##ACC9401.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2B
Deuteranopia (green-blind)
#D2BD4B
Tritanopia (blue-blind)
#B5BFAE
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #acc940;
/* rgb */ color: rgb(172, 201, 64);
/* oklch */ color: oklch(78.9% 0.163 120.6);
Tailwind
colors: {
  custom: {
    50: '#c8d97d',
    500: '#acc940',
    950: '#000000',
  },
}
SCSS
$custom: #acc940;
$custom-light: #c8d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#acc940",
  "rgb": {
    "r": 172,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 72.701,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.78884,
    "c": 0.16257,
    "h": 120.6
  },
  "luminance": 0.50914
}

Semantic roles & 50–950 ramp

primary
#ACC940
secondary
#433578
accent
#49DF68
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#13140A
muted
#83837D

Preview Lab

Preview with #ACC940

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

Preview Lab → · Contrast checker → · Palette generator →

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