#A240C5#A240C5

#A240C5 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.208 H 315.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#A240C5
RGBrgb(162, 64, 197)
HSLhsl(284, 53%, 51%)
HSVhsv(284, 68%, 77%)
CMYKcmyk(17.8%, 67.5%, 0%, 22.7%)
CIE-LABlab(46.15, 60.02, -51.51)
CIE-LCHlch(46.15, 79.09, 319.36°)
OKLaboklab(56.2% 0.149 -0.1448)
OKLCHoklch(56.2% 0.208 315.8)
XYZxyz(26.8102, 15.3804, 54.3690)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240C5 #63C540
analogous
#5F40C5 #A240C5 #C540A5
triadic
#A240C5 #C5A240 #40C5A2
tetradic
#A240C5 #C55F40 #63C540 #40A5C5
square
#A240C5 #C55F40 #63C540 #40A5C5
split-complementary
#A240C5 #A5C540 #40C55F
monochromatic
#57206A #7D2F99 #A240C5 #B96FD3 #D09EE2

Accessibility & contrast

On white

5.15
#A240C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#A240C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240C5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240C5#FFFFFF#000000##FFFFFF
##A240C51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#3F70C2
Tritanopia (blue-blind)
#A05A7D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a240c5;
/* rgb */ color: rgb(162, 64, 197);
/* oklch */ color: oklch(56.2% 0.208 315.8);
Tailwind
colors: {
  custom: {
    50: '#c17cd7',
    500: '#a240c5',
    950: '#000000',
  },
}
SCSS
$custom: #a240c5;
$custom-light: #c17cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#a240c5",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 284.211,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56199,
    "c": 0.20773,
    "h": 315.8
  },
  "luminance": 0.15379
}

Semantic roles & 50–950 ramp

primary
#A240C5
secondary
#A2CE93
accent
#DD4B71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A240C5

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

Preview Lab → · Contrast checker → · Palette generator →

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