#A240D4#A240D4

#A240D4 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.2% C 0.222 H 311.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#A240D4
RGBrgb(162, 64, 212)
HSLhsl(280, 63%, 54%)
HSVhsv(280, 70%, 83%)
CMYKcmyk(23.6%, 69.8%, 0%, 16.9%)
CIE-LABlab(47.11, 63.09, -58.62)
CIE-LCHlch(47.11, 86.12, 317.11°)
OKLaboklab(57.19% 0.1477 -0.1656)
OKLCHoklch(57.19% 0.222 311.7)
XYZxyz(28.6152, 16.1024, 63.8753)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240D4 #72D440
analogous
#5840D4 #A240D4 #D440BC
triadic
#A240D4 #D4A240 #40D4A2
tetradic
#A240D4 #D45840 #72D440 #40BCD4
square
#A240D4 #D45840 #72D440 #40BCD4
split-complementary
#A240D4 #BCD440 #40D458
monochromatic
#5D1C7D #8127AF #A240D4 #BA72DF #D3A4EA

Accessibility & contrast

On white

4.98
#A240D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#A240D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240D4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240D4#FFFFFF#000000##FFFFFF
##A240D41.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#2D72D1
Tritanopia (blue-blind)
#9C6086
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a240d4;
/* rgb */ color: rgb(162, 64, 212);
/* oklch */ color: oklch(57.2% 0.222 311.7);
Tailwind
colors: {
  custom: {
    50: '#c27de2',
    500: '#a240d4',
    950: '#000000',
  },
}
SCSS
$custom: #a240d4;
$custom-light: #c27de2;
$custom-dark: #000000;
JSON
{
  "hex": "#a240d4",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 279.73,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.22189,
    "h": 311.7
  },
  "luminance": 0.16102
}

Semantic roles & 50–950 ramp

primary
#A240D4
secondary
#AED798
accent
#E64279
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240D4

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

Preview Lab → · Contrast checker → · Palette generator →

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