#8240C9#8240C9

#8240C9 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.202 H 301.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8240C9
RGBrgb(130, 64, 201)
HSLhsl(269, 56%, 52%)
HSVhsv(269, 68%, 79%)
CMYKcmyk(35.3%, 68.2%, 0%, 21.2%)
CIE-LABlab(42.20, 54.17, -60.42)
CIE-LCHlch(42.20, 81.14, 311.88°)
OKLaboklab(52.56% 0.1069 -0.172)
OKLCHoklch(52.56% 0.202 301.9)
XYZxyz(21.5794, 12.6296, 56.5479)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240C9 #87C940
analogous
#4043C9 #8240C9 #C640C9
triadic
#8240C9 #C98240 #40C982
tetradic
#8240C9 #C94043 #87C940 #40C9C6
square
#8240C9 #C94043 #87C940 #40C9C6
split-complementary
#8240C9 #C9C640 #43C940
monochromatic
#461F6F #642D9F #8240C9 #A170D6 #C09FE4

Accessibility & contrast

On white

5.96
#8240C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8240C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240C9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240C9#FFFFFF#000000##FFFFFF
##8240C91.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#73607F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8240c9;
/* rgb */ color: rgb(130, 64, 201);
/* oklch */ color: oklch(52.6% 0.202 301.9);
Tailwind
colors: {
  custom: {
    50: '#ac7ada',
    500: '#8240c9',
    950: '#000000',
  },
}
SCSS
$custom: #8240c9;
$custom-light: #ac7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8240c9",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 268.905,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52557,
    "c": 0.20246,
    "h": 301.9
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8240C9

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

Preview Lab → · Contrast checker → · Palette generator →

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