#8340CB#8340CB

#8340CB is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.205 H 301.8°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8340CB
RGBrgb(131, 64, 203)
HSLhsl(269, 57%, 52%)
HSVhsv(269, 68%, 80%)
CMYKcmyk(35.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(42.47, 54.85, -61.14)
CIE-LCHlch(42.47, 82.14, 311.90°)
OKLaboklab(52.82% 0.108 -0.174)
OKLCHoklch(52.82% 0.205 301.8)
XYZxyz(21.9704, 12.8038, 57.8022)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340CB #88CB40
analogous
#4042CB #8340CB #C940CB
triadic
#8340CB #CB8340 #40CB83
tetradic
#8340CB #CB4042 #88CB40 #40CBC9
square
#8340CB #CB4042 #88CB40 #40CBC9
split-complementary
#8340CB #CBC940 #42CB40
monochromatic
#471F72 #652CA2 #8340CB #A270D8 #C1A0E5

Accessibility & contrast

On white

5.90
#8340CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8340CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340CB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340CB#FFFFFF#000000##FFFFFF
##8340CB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8340cb;
/* rgb */ color: rgb(131, 64, 203);
/* oklch */ color: oklch(52.8% 0.205 301.8);
Tailwind
colors: {
  custom: {
    50: '#ac7adc',
    500: '#8340cb',
    950: '#000000',
  },
}
SCSS
$custom: #8340cb;
$custom-light: #ac7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8340cb",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 268.921,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5282,
    "c": 0.20481,
    "h": 301.8
  },
  "luminance": 0.12804
}

Semantic roles & 50–950 ramp

primary
#8340CB
secondary
#B4D295
accent
#E04797
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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