#A240E1#A240E1

#A240E1 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 58.1% C 0.234 H 308.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#A240E1
RGBrgb(162, 64, 225)
HSLhsl(277, 73%, 57%)
HSVhsv(277, 72%, 88%)
CMYKcmyk(28%, 71.6%, 0%, 11.8%)
CIE-LABlab(47.99, 65.83, -64.61)
CIE-LCHlch(47.99, 92.24, 315.54°)
OKLaboklab(58.09% 0.1459 -0.1832)
OKLCHoklch(58.09% 0.234 308.5)
XYZxyz(30.3215, 16.7849, 72.8620)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240E1 #7FE140
analogous
#5240E1 #A240E1 #E140CF
triadic
#A240E1 #E1A240 #40E1A2
tetradic
#A240E1 #E15240 #7FE140 #40CFE1
square
#A240E1 #E15240 #7FE140 #40CFE1
split-complementary
#A240E1 #CFE140 #40E152
monochromatic
#601790 #841FC5 #A240E1 #BC75E9 #D6AAF2

Accessibility & contrast

On white

4.82
#A240E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#A240E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240E1
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240E1#FFFFFF#000000##FFFFFF
##A240E11.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#1073DE
Tritanopia (blue-blind)
#98658D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a240e1;
/* rgb */ color: rgb(162, 64, 225);
/* oklch */ color: oklch(58.1% 0.234 308.5);
Tailwind
colors: {
  custom: {
    50: '#c37deb',
    500: '#a240e1',
    950: '#000000',
  },
}
SCSS
$custom: #a240e1;
$custom-light: #c37deb;
$custom-dark: #000000;
JSON
{
  "hex": "#a240e1",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 276.522,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58093,
    "c": 0.23424,
    "h": 308.5
  },
  "luminance": 0.16784
}

Semantic roles & 50–950 ramp

primary
#A240E1
secondary
#B7DF9D
accent
#F03880
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A240E1

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

Preview Lab → · Contrast checker → · Palette generator →

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