#8240C5#8240C5

#8240C5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.3% C 0.198 H 302.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8240C5
RGBrgb(130, 64, 197)
HSLhsl(270, 53%, 51%)
HSVhsv(270, 68%, 77%)
CMYKcmyk(34%, 67.5%, 0%, 22.7%)
CIE-LABlab(41.91, 53.20, -58.56)
CIE-LCHlch(41.91, 79.11, 312.25°)
OKLaboklab(52.26% 0.1074 -0.1665)
OKLCHoklch(52.26% 0.198 302.8)
XYZxyz(21.1150, 12.4438, 54.1020)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240C5 #83C540
analogous
#4040C5 #8240C5 #C440C5
triadic
#8240C5 #C58240 #40C582
tetradic
#8240C5 #C54040 #83C540 #40C5C4
square
#8240C5 #C54040 #83C540 #40C5C4
split-complementary
#8240C5 #C5C440 #40C540
monochromatic
#45206A #632F99 #8240C5 #A16FD3 #BF9EE2

Accessibility & contrast

On white

6.02
#8240C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8240C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240C5
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240C5#FFFFFF#000000##FFFFFF
##8240C51.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#755E7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8240c5;
/* rgb */ color: rgb(130, 64, 197);
/* oklch */ color: oklch(52.3% 0.198 302.8);
Tailwind
colors: {
  custom: {
    50: '#ab79d7',
    500: '#8240c5',
    950: '#000000',
  },
}
SCSS
$custom: #8240c5;
$custom-light: #ab79d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8240c5",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 269.774,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52262,
    "c": 0.19812,
    "h": 302.8
  },
  "luminance": 0.12444
}

Semantic roles & 50–950 ramp

primary
#8240C5
secondary
#B1CE93
accent
#DD4B94
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8240C5

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

Preview Lab → · Contrast checker → · Palette generator →

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