#A240B1#A240B1

#A240B1 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.189 H 322.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#A240B1
RGBrgb(162, 64, 177)
HSLhsl(292, 47%, 47%)
HSVhsv(292, 64%, 69%)
CMYKcmyk(8.5%, 63.8%, 0%, 30.6%)
CIE-LABlab(44.97, 56.11, -41.71)
CIE-LCHlch(44.97, 69.92, 323.38°)
OKLaboklab(54.97% 0.1494 -0.1161)
OKLCHoklch(54.97% 0.189 322.1)
XYZxyz(24.6687, 14.5238, 43.0904)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240B1 #4FB140
analogous
#6940B1 #A240B1 #B14088
triadic
#A240B1 #B1A240 #40B1A2
tetradic
#A240B1 #B16940 #4FB140 #4088B1
square
#A240B1 #B16940 #4FB140 #4088B1
split-complementary
#A240B1 #88B140 #40B169
monochromatic
#501F57 #793084 #A240B1 #BB66C8 #CF93D8

Accessibility & contrast

On white

5.38
#A240B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A240B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240B1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240B1#FFFFFF#000000##FFFFFF
##A240B11.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#A45273
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a240b1;
/* rgb */ color: rgb(162, 64, 177);
/* oklch */ color: oklch(55.0% 0.189 322.1);
Tailwind
colors: {
  custom: {
    50: '#c17cc9',
    500: '#a240b1',
    950: '#000000',
  },
}
SCSS
$custom: #a240b1;
$custom-light: #c17cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a240b1",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 292.035,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54974,
    "c": 0.18921,
    "h": 322.1
  },
  "luminance": 0.14522
}

Semantic roles & 50–950 ramp

primary
#A240B1
secondary
#91C389
accent
#D75163
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A240B1

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

Preview Lab → · Contrast checker → · Palette generator →

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