#8240A2#8240A2

#8240A2 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 49.9% C 0.160 H 313.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8240A2
RGBrgb(130, 64, 162)
HSLhsl(280, 43%, 44%)
HSVhsv(280, 60%, 64%)
CMYKcmyk(19.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(39.62, 45.04, -41.60)
CIE-LCHlch(39.62, 61.32, 317.27°)
OKLaboklab(49.87% 0.1094 -0.1167)
OKLCHoklch(49.87% 0.16 313.1)
XYZxyz(17.5598, 11.0217, 35.3778)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240A2 #60A240
analogous
#5140A2 #8240A2 #A24091
triadic
#8240A2 #A28240 #40A282
tetradic
#8240A2 #A25140 #60A240 #4091A2
square
#8240A2 #A25140 #60A240 #4091A2
split-complementary
#8240A2 #91A240 #40A251
monochromatic
#3C1D4A #5F2F76 #8240A2 #A05FC0 #BA8BD1

Accessibility & contrast

On white

6.55
#8240A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8240A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240A2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240A2#FFFFFF#000000##FFFFFF
##8240A21.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#3B5FA0
Tritanopia (blue-blind)
#7F526B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8240a2;
/* rgb */ color: rgb(130, 64, 162);
/* oklch */ color: oklch(49.9% 0.160 313.1);
Tailwind
colors: {
  custom: {
    50: '#a978be',
    500: '#8240a2',
    950: '#000000',
  },
}
SCSS
$custom: #8240a2;
$custom-light: #a978be;
$custom-dark: #000000;
JSON
{
  "hex": "#8240a2",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 280.408,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49871,
    "c": 0.16002,
    "h": 313.1
  },
  "luminance": 0.11021
}

Semantic roles & 50–950 ramp

primary
#8240A2
secondary
#95BC82
accent
#D3557E
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8240A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8240A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva