#8336CA#8336CA

#8336CA is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.6% C 0.215 H 303.2°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8336CA
RGBrgb(131, 54, 202)
HSLhsl(271, 58%, 50%)
HSVhsv(271, 73%, 79%)
CMYKcmyk(35.1%, 73.3%, 0%, 20.8%)
CIE-LABlab(40.78, 59.14, -63.30)
CIE-LCHlch(40.78, 86.62, 313.05°)
OKLaboklab(51.6% 0.118 -0.1803)
OKLCHoklch(51.6% 0.215 303.2)
XYZxyz(21.3374, 11.7279, 57.0053)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8336CA #7DCA36
analogous
#3936CA #8336CA #CA36C7
triadic
#8336CA #CA8336 #36CA83
tetradic
#8336CA #CA3936 #7DCA36 #36C7CA
square
#8336CA #CA3936 #7DCA36 #36C7CA
split-complementary
#8336CA #C7CA36 #36CA39
monochromatic
#441C6A #64299A #8336CA #A166D7 #BF97E4

Accessibility & contrast

On white

6.28
#8336CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8336CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8336CA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8336CA#FFFFFF#000000##FFFFFF
##8336CA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#755B7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8336ca;
/* rgb */ color: rgb(131, 54, 202);
/* oklch */ color: oklch(51.6% 0.215 303.2);
Tailwind
colors: {
  custom: {
    50: '#ad74db',
    500: '#8336ca',
    950: '#000000',
  },
}
SCSS
$custom: #8336ca;
$custom-light: #ad74db;
$custom-dark: #000000;
JSON
{
  "hex": "#8336ca",
  "rgb": {
    "r": 131,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 271.216,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51599,
    "c": 0.21549,
    "h": 303.2
  },
  "luminance": 0.11728
}

Semantic roles & 50–950 ramp

primary
#8336CA
secondary
#ADCF8D
accent
#E14691
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8336CA

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

Preview Lab → · Contrast checker → · Palette generator →

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