#8336CC#8336CC

#8336CC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.218 H 302.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8336CC
RGBrgb(131, 54, 204)
HSLhsl(271, 60%, 51%)
HSVhsv(271, 74%, 80%)
CMYKcmyk(35.8%, 73.5%, 0%, 20%)
CIE-LABlab(40.93, 59.60, -64.21)
CIE-LCHlch(40.93, 87.61, 312.87°)
OKLaboklab(51.76% 0.1175 -0.183)
OKLCHoklch(51.76% 0.218 302.7)
XYZxyz(21.5757, 11.8232, 58.2605)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8336CC #7FCC36
analogous
#3836CC #8336CC #CC36CA
triadic
#8336CC #CC8336 #36CC83
tetradic
#8336CC #CC3836 #7FCC36 #36CACC
square
#8336CC #CC3836 #7FCC36 #36CACC
split-complementary
#8336CC #CACC36 #36CC38
monochromatic
#451B6C #64289D #8336CC #A167D8 #BF98E5

Accessibility & contrast

On white

6.24
#8336CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8336CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8336CC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8336CC#FFFFFF#000000##FFFFFF
##8336CC1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#745B7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8336cc;
/* rgb */ color: rgb(131, 54, 204);
/* oklch */ color: oklch(51.8% 0.218 302.7);
Tailwind
colors: {
  custom: {
    50: '#ad74dd',
    500: '#8336cc',
    950: '#000000',
  },
}
SCSS
$custom: #8336cc;
$custom-light: #ad74dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8336cc",
  "rgb": {
    "r": 131,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 270.8,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51755,
    "c": 0.21751,
    "h": 302.7
  },
  "luminance": 0.11823
}

Semantic roles & 50–950 ramp

primary
#8336CC
secondary
#AED08E
accent
#E34592
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8336CC

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

Preview Lab → · Contrast checker → · Palette generator →

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