#A240C8#A240C8

#A240C8 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.211 H 315.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A240C8
RGBrgb(162, 64, 200)
HSLhsl(283, 55%, 52%)
HSVhsv(283, 68%, 78%)
CMYKcmyk(19%, 68%, 0%, 21.6%)
CIE-LABlab(46.34, 60.63, -52.95)
CIE-LCHlch(46.34, 80.49, 318.87°)
OKLaboklab(56.39% 0.1488 -0.149)
OKLCHoklch(56.39% 0.211 315)
XYZxyz(27.1573, 15.5192, 56.1973)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240C8 #66C840
analogous
#5E40C8 #A240C8 #C840AA
triadic
#A240C8 #C8A240 #40C8A2
tetradic
#A240C8 #C85E40 #66C840 #40AAC8
square
#A240C8 #C85E40 #66C840 #40AAC8
split-complementary
#A240C8 #AAC840 #40C85E
monochromatic
#58206E #7E2D9D #A240C8 #B970D6 #D09FE3

Accessibility & contrast

On white

5.12
#A240C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#A240C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240C8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240C8#FFFFFF#000000##FFFFFF
##A240C81.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#3C70C5
Tritanopia (blue-blind)
#9F5B7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a240c8;
/* rgb */ color: rgb(162, 64, 200);
/* oklch */ color: oklch(56.4% 0.211 315.0);
Tailwind
colors: {
  custom: {
    50: '#c17cd9',
    500: '#a240c8',
    950: '#000000',
  },
}
SCSS
$custom: #a240c8;
$custom-light: #c17cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a240c8",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 283.235,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56392,
    "c": 0.21055,
    "h": 315
  },
  "luminance": 0.15518
}

Semantic roles & 50–950 ramp

primary
#A240C8
secondary
#A5D094
accent
#DF4973
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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