#8336CD#8336CD

#8336CD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.8% C 0.219 H 302.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8336CD
RGBrgb(131, 54, 205)
HSLhsl(271, 60%, 51%)
HSVhsv(271, 74%, 80%)
CMYKcmyk(36.1%, 73.7%, 0%, 19.6%)
CIE-LABlab(41.01, 59.84, -64.66)
CIE-LCHlch(41.01, 88.10, 312.78°)
OKLaboklab(51.83% 0.1173 -0.1844)
OKLCHoklch(51.83% 0.219 302.5)
XYZxyz(21.6961, 11.8714, 58.8942)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8336CD #80CD36
analogous
#3736CD #8336CD #CD36CB
triadic
#8336CD #CD8336 #36CD83
tetradic
#8336CD #CD3736 #80CD36 #36CBCD
square
#8336CD #CD3736 #80CD36 #36CBCD
split-complementary
#8336CD #CBCD36 #36CD37
monochromatic
#451B6D #64279E #8336CD #A167D9 #BF98E5

Accessibility & contrast

On white

6.22
#8336CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8336CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8336CD
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8336CD#FFFFFF#000000##FFFFFF
##8336CD1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#735C7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8336cd;
/* rgb */ color: rgb(131, 54, 205);
/* oklch */ color: oklch(51.8% 0.219 302.5);
Tailwind
colors: {
  custom: {
    50: '#ad74dd',
    500: '#8336cd',
    950: '#000000',
  },
}
SCSS
$custom: #8336cd;
$custom-light: #ad74dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8336cd",
  "rgb": {
    "r": 131,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 270.596,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51834,
    "c": 0.21852,
    "h": 302.5
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#8336CD
secondary
#AFD18E
accent
#E34492
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8336CD

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

Preview Lab → · Contrast checker → · Palette generator →

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