#8240C8#8240C8

#8240C8 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.201 H 302.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8240C8
RGBrgb(130, 64, 200)
HSLhsl(269, 55%, 52%)
HSVhsv(269, 68%, 78%)
CMYKcmyk(35%, 68%, 0%, 21.6%)
CIE-LABlab(42.13, 53.92, -59.95)
CIE-LCHlch(42.13, 80.64, 311.97°)
OKLaboklab(52.48% 0.107 -0.1706)
OKLCHoklch(52.48% 0.201 302.1)
XYZxyz(21.4622, 12.5827, 55.9304)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240C8 #86C840
analogous
#4042C8 #8240C8 #C640C8
triadic
#8240C8 #C88240 #40C882
tetradic
#8240C8 #C84042 #86C840 #40C8C6
square
#8240C8 #C84042 #86C840 #40C8C6
split-complementary
#8240C8 #C8C640 #42C840
monochromatic
#46206E #642D9D #8240C8 #A170D6 #C09FE3

Accessibility & contrast

On white

5.97
#8240C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8240C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240C8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240C8#FFFFFF#000000##FFFFFF
##8240C81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#745F7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8240c8;
/* rgb */ color: rgb(130, 64, 200);
/* oklch */ color: oklch(52.5% 0.201 302.1);
Tailwind
colors: {
  custom: {
    50: '#ac7ada',
    500: '#8240c8',
    950: '#000000',
  },
}
SCSS
$custom: #8240c8;
$custom-light: #ac7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8240c8",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 269.118,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52483,
    "c": 0.20137,
    "h": 302.1
  },
  "luminance": 0.12583
}

Semantic roles & 50–950 ramp

primary
#8240C8
secondary
#B3D094
accent
#DF4996
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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