#A240AF#A240AF

#A240AF is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.9% C 0.187 H 322.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#A240AF
RGBrgb(162, 64, 175)
HSLhsl(293, 46%, 47%)
HSVhsv(293, 63%, 69%)
CMYKcmyk(7.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(44.86, 55.74, -40.71)
CIE-LCHlch(44.86, 69.02, 323.86°)
OKLaboklab(54.86% 0.1493 -0.1132)
OKLCHoklch(54.86% 0.187 322.8)
XYZxyz(24.4708, 14.4446, 42.0483)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240AF #4DAF40
analogous
#6B40AF #A240AF #AF4085
triadic
#A240AF #AFA240 #40AFA2
tetradic
#A240AF #AF6B40 #4DAF40 #4085AF
square
#A240AF #AF6B40 #4DAF40 #4085AF
split-complementary
#A240AF #85AF40 #40AF6B
monochromatic
#4F1F55 #793082 #A240AF #BB65C7 #CF92D7

Accessibility & contrast

On white

5.40
#A240AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#A240AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240AF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240AF#FFFFFF#000000##FFFFFF
##A240AF1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B2
Deuteranopia (green-blind)
#4F6EAC
Tritanopia (blue-blind)
#A45172
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a240af;
/* rgb */ color: rgb(162, 64, 175);
/* oklch */ color: oklch(54.9% 0.187 322.8);
Tailwind
colors: {
  custom: {
    50: '#c17cc7',
    500: '#a240af',
    950: '#000000',
  },
}
SCSS
$custom: #a240af;
$custom-light: #c17cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#a240af",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 292.973,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54858,
    "c": 0.18739,
    "h": 322.8
  },
  "luminance": 0.14443
}

Semantic roles & 50–950 ramp

primary
#A240AF
secondary
#8FC388
accent
#D65261
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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