#8240CC#8240CC

#8240CC is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.206 H 301.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8240CC
RGBrgb(130, 64, 204)
HSLhsl(268, 58%, 53%)
HSVhsv(268, 69%, 80%)
CMYKcmyk(36.3%, 68.6%, 0%, 20%)
CIE-LABlab(42.42, 54.90, -61.80)
CIE-LCHlch(42.42, 82.66, 311.61°)
OKLaboklab(52.78% 0.1064 -0.176)
OKLCHoklch(52.78% 0.206 301.2)
XYZxyz(21.9358, 12.7721, 58.4246)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240CC #8ACC40
analogous
#4044CC #8240CC #C840CC
triadic
#8240CC #CC8240 #40CC82
tetradic
#8240CC #CC4044 #8ACC40 #40CCC8
square
#8240CC #CC4044 #8ACC40 #40CCC8
split-complementary
#8240CC #CCC840 #44CC40
monochromatic
#461F73 #642CA3 #8240CC #A270D9 #C1A1E6

Accessibility & contrast

On white

5.91
#8240CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8240CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240CC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240CC#FFFFFF#000000##FFFFFF
##8240CC1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#726181
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8240cc;
/* rgb */ color: rgb(130, 64, 204);
/* oklch */ color: oklch(52.8% 0.206 301.2);
Tailwind
colors: {
  custom: {
    50: '#ac7adc',
    500: '#8240cc',
    950: '#000000',
  },
}
SCSS
$custom: #8240cc;
$custom-light: #ac7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8240cc",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 268.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52782,
    "c": 0.2057,
    "h": 301.2
  },
  "luminance": 0.12772
}

Semantic roles & 50–950 ramp

primary
#8240CC
secondary
#B6D295
accent
#E14798
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8240CC

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

Preview Lab → · Contrast checker → · Palette generator →

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