#ACC040#ACC040

#ACC040 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 76.8% C 0.152 H 117.8°. Best body text is #000000 at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#ACC040
RGBrgb(172, 192, 64)
HSLhsl(69, 50%, 50%)
HSVhsv(69, 67%, 75%)
CMYKcmyk(10.4%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.09, -23.92, 59.56)
CIE-LCHlch(74.09, 64.18, 111.88°)
OKLaboklab(76.84% -0.0708 0.1344)
OKLCHoklch(76.84% 0.152 117.8)
XYZxyz(36.7891, 46.8405, 11.9526)
Luminance0.4684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ACC040 #5440C0
analogous
#C09440 #ACC040 #6CC040
triadic
#ACC040 #40ACC0 #C040AC
tetradic
#ACC040 #40C094 #5440C0 #C0406C
square
#ACC040 #40C094 #5440C0 #C0406C
split-complementary
#ACC040 #406CC0 #9440C0
monochromatic
#5A6421 #839230 #ACC040 #C0CF6E #D4DE9C

Accessibility & contrast

On white

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

On black

10.37
#ACC040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ACC040
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ACC040#FFFFFF#000000##000000
##ACC0401.002.0310.3710.37
#FFFFFF2.031.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB62E
Deuteranopia (green-blind)
#CAB749
Tritanopia (blue-blind)
#B6B6A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #acc040;
/* rgb */ color: rgb(172, 192, 64);
/* oklch */ color: oklch(76.8% 0.152 117.8);
Tailwind
colors: {
  custom: {
    50: '#c8d37c',
    500: '#acc040',
    950: '#000000',
  },
}
SCSS
$custom: #acc040;
$custom-light: #c8d37c;
$custom-dark: #000000;
JSON
{
  "hex": "#acc040",
  "rgb": {
    "r": 172,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 69.375,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.7684,
    "c": 0.15191,
    "h": 117.8
  },
  "luminance": 0.4684
}

Semantic roles & 50–950 ramp

primary
#ACC040
secondary
#9A91CB
accent
#4EDA64
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#13140A
muted
#82827C

Preview Lab

Preview with #ACC040

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

Preview Lab → · Contrast checker → · Palette generator →

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