#A240CF#A240CF

#A240CF is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.217 H 313.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A240CF
RGBrgb(162, 64, 207)
HSLhsl(281, 60%, 53%)
HSVhsv(281, 69%, 81%)
CMYKcmyk(21.7%, 69.1%, 0%, 18.8%)
CIE-LABlab(46.78, 62.06, -56.27)
CIE-LCHlch(46.78, 83.77, 317.80°)
OKLaboklab(56.85% 0.1482 -0.1587)
OKLCHoklch(56.85% 0.217 313)
XYZxyz(27.9942, 15.8540, 60.6048)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240CF #6DCF40
analogous
#5A40CF #A240CF #CF40B4
triadic
#A240CF #CFA240 #40CFA2
tetradic
#A240CF #CF5A40 #6DCF40 #40B4CF
square
#A240CF #CF5A40 #6DCF40 #40B4CF
split-complementary
#A240CF #B4CF40 #40CF5A
monochromatic
#5B1E77 #802AA8 #A240CF #BA71DB #D2A2E8

Accessibility & contrast

On white

5.04
#A240CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A240CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240CF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240CF#FFFFFF#000000##FFFFFF
##A240CF1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#3471CC
Tritanopia (blue-blind)
#9D5E83
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a240cf;
/* rgb */ color: rgb(162, 64, 207);
/* oklch */ color: oklch(56.9% 0.217 313.0);
Tailwind
colors: {
  custom: {
    50: '#c27dde',
    500: '#a240cf',
    950: '#000000',
  },
}
SCSS
$custom: #a240cf;
$custom-light: #c27dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a240cf",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 281.119,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56853,
    "c": 0.21715,
    "h": 313
  },
  "luminance": 0.15853
}

Semantic roles & 50–950 ramp

primary
#A240CF
secondary
#AAD497
accent
#E34577
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240CF

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

Preview Lab → · Contrast checker → · Palette generator →

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