#A240B2#A240B2

#A240B2 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.190 H 321.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A240B2
RGBrgb(162, 64, 178)
HSLhsl(292, 47%, 47%)
HSVhsv(292, 64%, 70%)
CMYKcmyk(9%, 64%, 0%, 30.2%)
CIE-LABlab(45.03, 56.30, -42.21)
CIE-LCHlch(45.03, 70.37, 323.14°)
OKLaboklab(55.03% 0.1494 -0.1176)
OKLCHoklch(55.03% 0.19 321.8)
XYZxyz(24.7687, 14.5638, 43.6173)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240B2 #50B240
analogous
#6940B2 #A240B2 #B24089
triadic
#A240B2 #B2A240 #40B2A2
tetradic
#A240B2 #B26940 #50B240 #4089B2
square
#A240B2 #B26940 #50B240 #4089B2
split-complementary
#A240B2 #89B240 #40B269
monochromatic
#502058 #793085 #A240B2 #BB67C8 #CF94D8

Accessibility & contrast

On white

5.37
#A240B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A240B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240B2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240B2#FFFFFF#000000##FFFFFF
##A240B21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#A45273
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a240b2;
/* rgb */ color: rgb(162, 64, 178);
/* oklch */ color: oklch(55.0% 0.190 321.8);
Tailwind
colors: {
  custom: {
    50: '#c17cc9',
    500: '#a240b2',
    950: '#000000',
  },
}
SCSS
$custom: #a240b2;
$custom-light: #c17cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a240b2",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 291.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55032,
    "c": 0.19011,
    "h": 321.8
  },
  "luminance": 0.14563
}

Semantic roles & 50–950 ramp

primary
#A240B2
secondary
#92C48A
accent
#D75164
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A240B2

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

Preview Lab → · Contrast checker → · Palette generator →

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