#8240CB#8240CB

#8240CB is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.205 H 301.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8240CB
RGBrgb(130, 64, 203)
HSLhsl(268, 57%, 52%)
HSVhsv(268, 68%, 80%)
CMYKcmyk(36%, 68.5%, 0%, 20.4%)
CIE-LABlab(42.34, 54.65, -61.34)
CIE-LCHlch(42.34, 82.15, 311.70°)
OKLaboklab(52.71% 0.1066 -0.1747)
OKLCHoklch(52.71% 0.205 301.4)
XYZxyz(21.8162, 12.7243, 57.7950)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240CB #89CB40
analogous
#4044CB #8240CB #C740CB
triadic
#8240CB #CB8240 #40CB82
tetradic
#8240CB #CB4044 #89CB40 #40CBC7
square
#8240CB #CB4044 #89CB40 #40CBC7
split-complementary
#8240CB #CBC740 #44CB40
monochromatic
#461F72 #642CA2 #8240CB #A170D8 #C1A0E5

Accessibility & contrast

On white

5.92
#8240CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8240CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240CB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240CB#FFFFFF#000000##FFFFFF
##8240CB1.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8240cb;
/* rgb */ color: rgb(130, 64, 203);
/* oklch */ color: oklch(52.7% 0.205 301.4);
Tailwind
colors: {
  custom: {
    50: '#ac7adc',
    500: '#8240cb',
    950: '#000000',
  },
}
SCSS
$custom: #8240cb;
$custom-light: #ac7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8240cb",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 268.489,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.20463,
    "h": 301.4
  },
  "luminance": 0.12724
}

Semantic roles & 50–950 ramp

primary
#8240CB
secondary
#B5D295
accent
#E04798
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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