#8339CA#8339CA

#8339CA is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.9% C 0.212 H 302.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8339CA
RGBrgb(131, 57, 202)
HSLhsl(271, 58%, 51%)
HSVhsv(271, 72%, 79%)
CMYKcmyk(35.1%, 71.8%, 0%, 20.8%)
CIE-LABlab(41.24, 57.83, -62.55)
CIE-LCHlch(41.24, 85.19, 312.76°)
OKLaboklab(51.93% 0.1151 -0.1782)
OKLCHoklch(51.93% 0.212 302.9)
XYZxyz(21.4814, 12.0158, 57.0532)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8339CA #80CA39
analogous
#3A39CA #8339CA #CA39C8
triadic
#8339CA #CA8339 #39CA83
tetradic
#8339CA #CA3A39 #80CA39 #39C8CA
square
#8339CA #CA3A39 #80CA39 #39C8CA
split-complementary
#8339CA #C8CA39 #39CA3A
monochromatic
#451D6C #642A9C #8339CA #A169D7 #BF9AE4

Accessibility & contrast

On white

6.17
#8339CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8339CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8339CA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8339CA#FFFFFF#000000##FFFFFF
##8339CA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#745C7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8339ca;
/* rgb */ color: rgb(131, 57, 202);
/* oklch */ color: oklch(51.9% 0.212 302.9);
Tailwind
colors: {
  custom: {
    50: '#ad76db',
    500: '#8339ca',
    950: '#000000',
  },
}
SCSS
$custom: #8339ca;
$custom-light: #ad76db;
$custom-dark: #000000;
JSON
{
  "hex": "#8339ca",
  "rgb": {
    "r": 131,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 270.621,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51925,
    "c": 0.21211,
    "h": 302.9
  },
  "luminance": 0.12016
}

Semantic roles & 50–950 ramp

primary
#8339CA
secondary
#AFD08F
accent
#E14792
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8339CA

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

Preview Lab → · Contrast checker → · Palette generator →

#8339CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva