#A240C7#A240C7

#A240C7 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.3% C 0.210 H 315.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#A240C7
RGBrgb(162, 64, 199)
HSLhsl(284, 55%, 52%)
HSVhsv(284, 68%, 78%)
CMYKcmyk(18.6%, 67.8%, 0%, 22%)
CIE-LABlab(46.27, 60.42, -52.47)
CIE-LCHlch(46.27, 80.03, 319.03°)
OKLaboklab(56.33% 0.1488 -0.1476)
OKLCHoklch(56.33% 0.21 315.2)
XYZxyz(27.0408, 15.4727, 55.5839)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240C7 #65C740
analogous
#5F40C7 #A240C7 #C740A8
triadic
#A240C7 #C7A240 #40C7A2
tetradic
#A240C7 #C75F40 #65C740 #40A8C7
square
#A240C7 #C75F40 #65C740 #40A8C7
split-complementary
#A240C7 #A8C740 #40C75F
monochromatic
#58206D #7E2E9C #A240C7 #B96FD5 #D09FE3

Accessibility & contrast

On white

5.13
#A240C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#A240C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240C7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240C7#FFFFFF#000000##FFFFFF
##A240C71.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a240c7;
/* rgb */ color: rgb(162, 64, 199);
/* oklch */ color: oklch(56.3% 0.210 315.2);
Tailwind
colors: {
  custom: {
    50: '#c17cd9',
    500: '#a240c7',
    950: '#000000',
  },
}
SCSS
$custom: #a240c7;
$custom-light: #c17cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a240c7",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 283.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56328,
    "c": 0.2096,
    "h": 315.2
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#A240C7
secondary
#A4CF94
accent
#DE4A72
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240C7

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

Preview Lab → · Contrast checker → · Palette generator →

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