#8240C1#8240C1

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

Color values

HEX#8240C1
RGBrgb(130, 64, 193)
HSLhsl(271, 51%, 50%)
HSVhsv(271, 67%, 76%)
CMYKcmyk(32.6%, 66.8%, 0%, 24.3%)
CIE-LABlab(41.63, 52.24, -56.69)
CIE-LCHlch(41.63, 77.08, 312.66°)
OKLaboklab(51.97% 0.1079 -0.161)
OKLCHoklch(51.97% 0.194 303.8)
XYZxyz(20.6628, 12.2629, 51.7202)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240C1 #7FC140
analogous
#4240C1 #8240C1 #C140BF
triadic
#8240C1 #C18240 #40C182
tetradic
#8240C1 #C14240 #7FC140 #40BFC1
square
#8240C1 #C14240 #7FC140 #40BFC1
split-complementary
#8240C1 #BFC140 #40C142
monochromatic
#442166 #633094 #8240C1 #A06ED0 #BE9CDF

Accessibility & contrast

On white

6.08
#8240C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8240C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240C1
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240C1#FFFFFF#000000##FFFFFF
##8240C11.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0E62BE
Tritanopia (blue-blind)
#765D7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8240c1;
/* rgb */ color: rgb(130, 64, 193);
/* oklch */ color: oklch(52.0% 0.194 303.8);
Tailwind
colors: {
  custom: {
    50: '#ab79d4',
    500: '#8240c1',
    950: '#000000',
  },
}
SCSS
$custom: #8240c1;
$custom-light: #ab79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8240c1",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 270.698,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5197,
    "c": 0.19378,
    "h": 303.8
  },
  "luminance": 0.12263
}

Semantic roles & 50–950 ramp

primary
#8240C1
secondary
#AECB92
accent
#DA4D92
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8240C1

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

Preview Lab → · Contrast checker → · Palette generator →

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