#8240C2#8240C2

#8240C2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.195 H 303.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8240C2
RGBrgb(130, 64, 194)
HSLhsl(270, 52%, 51%)
HSVhsv(270, 67%, 76%)
CMYKcmyk(33%, 67%, 0%, 23.9%)
CIE-LABlab(41.70, 52.48, -57.16)
CIE-LCHlch(41.70, 77.59, 312.56°)
OKLaboklab(52.04% 0.1077 -0.1624)
OKLCHoklch(52.04% 0.195 303.6)
XYZxyz(20.7747, 12.3077, 52.3096)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240C2 #80C240
analogous
#4140C2 #8240C2 #C240C1
triadic
#8240C2 #C28240 #40C282
tetradic
#8240C2 #C24140 #80C240 #40C1C2
square
#8240C2 #C24140 #80C240 #40C1C2
split-complementary
#8240C2 #C1C240 #40C241
monochromatic
#442167 #633095 #8240C2 #A06ED1 #BF9DE0

Accessibility & contrast

On white

6.07
#8240C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8240C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240C2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240C2#FFFFFF#000000##FFFFFF
##8240C21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0A62BF
Tritanopia (blue-blind)
#765D7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8240c2;
/* rgb */ color: rgb(130, 64, 194);
/* oklch */ color: oklch(52.0% 0.195 303.6);
Tailwind
colors: {
  custom: {
    50: '#ab79d5',
    500: '#8240c2',
    950: '#000000',
  },
}
SCSS
$custom: #8240c2;
$custom-light: #ab79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8240c2",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 270.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52043,
    "c": 0.19487,
    "h": 303.6
  },
  "luminance": 0.12308
}

Semantic roles & 50–950 ramp

primary
#8240C2
secondary
#AECC92
accent
#DB4D93
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8240C2

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

Preview Lab → · Contrast checker → · Palette generator →

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