#A240D7#A240D7

#A240D7 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.4% C 0.225 H 311.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A240D7
RGBrgb(162, 64, 215)
HSLhsl(279, 65%, 55%)
HSVhsv(279, 70%, 84%)
CMYKcmyk(24.7%, 70.2%, 0%, 15.7%)
CIE-LABlab(47.31, 63.72, -60.01)
CIE-LCHlch(47.31, 87.53, 316.71°)
OKLaboklab(57.39% 0.1473 -0.1697)
OKLCHoklch(57.39% 0.225 311)
XYZxyz(28.9971, 16.2552, 65.8868)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240D7 #75D740
analogous
#5640D7 #A240D7 #D740C1
triadic
#A240D7 #D7A240 #40D7A2
tetradic
#A240D7 #D75640 #75D740 #40C1D7
square
#A240D7 #D75640 #75D740 #40C1D7
split-complementary
#A240D7 #C1D740 #40D756
monochromatic
#5E1B81 #8226B4 #A240D7 #BB73E2 #D3A5EC

Accessibility & contrast

On white

4.94
#A240D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#A240D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240D7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240D7#FFFFFF#000000##FFFFFF
##A240D71.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#2972D4
Tritanopia (blue-blind)
#9B6187
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a240d7;
/* rgb */ color: rgb(162, 64, 215);
/* oklch */ color: oklch(57.4% 0.225 311.0);
Tailwind
colors: {
  custom: {
    50: '#c27de4',
    500: '#a240d7',
    950: '#000000',
  },
}
SCSS
$custom: #a240d7;
$custom-light: #c27de4;
$custom-dark: #000000;
JSON
{
  "hex": "#a240d7",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 278.94,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57394,
    "c": 0.22473,
    "h": 311
  },
  "luminance": 0.16254
}

Semantic roles & 50–950 ramp

primary
#A240D7
secondary
#B0D99A
accent
#E83F7B
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A240D7

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

Preview Lab → · Contrast checker → · Palette generator →

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