#A240D9#A240D9

#A240D9 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.5% C 0.227 H 310.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A240D9
RGBrgb(162, 64, 217)
HSLhsl(278, 67%, 55%)
HSVhsv(278, 71%, 85%)
CMYKcmyk(25.3%, 70.5%, 0%, 14.9%)
CIE-LABlab(47.44, 64.14, -60.94)
CIE-LCHlch(47.44, 88.47, 316.46°)
OKLaboklab(57.53% 0.1471 -0.1724)
OKLCHoklch(57.53% 0.227 310.5)
XYZxyz(29.2557, 16.3586, 67.2486)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240D9 #77D940
analogous
#5540D9 #A240D9 #D940C4
triadic
#A240D9 #D9A240 #40D9A2
tetradic
#A240D9 #D95540 #77D940 #40C4D9
square
#A240D9 #D95540 #77D940 #40C4D9
split-complementary
#A240D9 #C4D940 #40D955
monochromatic
#5E1A84 #8324B7 #A240D9 #BB73E3 #D4A6ED

Accessibility & contrast

On white

4.92
#A240D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#A240D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240D9
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240D9#FFFFFF#000000##FFFFFF
##A240D91.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#2572D6
Tritanopia (blue-blind)
#9B6288
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a240d9;
/* rgb */ color: rgb(162, 64, 217);
/* oklch */ color: oklch(57.5% 0.227 310.5);
Tailwind
colors: {
  custom: {
    50: '#c27de6',
    500: '#a240d9',
    950: '#000000',
  },
}
SCSS
$custom: #a240d9;
$custom-light: #c27de6;
$custom-dark: #000000;
JSON
{
  "hex": "#a240d9",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 278.431,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57532,
    "c": 0.22663,
    "h": 310.5
  },
  "luminance": 0.16358
}

Semantic roles & 50–950 ramp

primary
#A240D9
secondary
#B1DA9A
accent
#EA3E7C
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A240D9

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

Preview Lab → · Contrast checker → · Palette generator →

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