#8336CB#8336CB

#8336CB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.7% C 0.216 H 302.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8336CB
RGBrgb(131, 54, 203)
HSLhsl(271, 59%, 50%)
HSVhsv(271, 73%, 80%)
CMYKcmyk(35.5%, 73.4%, 0%, 20.4%)
CIE-LABlab(40.86, 59.37, -63.75)
CIE-LCHlch(40.86, 87.12, 312.96°)
OKLaboklab(51.68% 0.1178 -0.1817)
OKLCHoklch(51.68% 0.217 302.9)
XYZxyz(21.4562, 11.7754, 57.6308)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8336CB #7ECB36
analogous
#3936CB #8336CB #CB36C8
triadic
#8336CB #CB8336 #36CB83
tetradic
#8336CB #CB3936 #7ECB36 #36C8CB
square
#8336CB #CB3936 #7ECB36 #36C8CB
split-complementary
#8336CB #C8CB36 #36CB39
monochromatic
#451C6B #64289C #8336CB #A167D8 #BF97E4

Accessibility & contrast

On white

6.26
#8336CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8336CB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8336CB#FFFFFF#000000##FFFFFF
##8336CB1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8336cb;
/* rgb */ color: rgb(131, 54, 203);
/* oklch */ color: oklch(51.7% 0.216 302.9);
Tailwind
colors: {
  custom: {
    50: '#ad74dc',
    500: '#8336cb',
    950: '#000000',
  },
}
SCSS
$custom: #8336cb;
$custom-light: #ad74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8336cb",
  "rgb": {
    "r": 131,
    "g": 54,
    "b": 203
  },
  "hsl": {
    "h": 271.007,
    "s": 58.893,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51677,
    "c": 0.2165,
    "h": 302.9
  },
  "luminance": 0.11775
}

Semantic roles & 50–950 ramp

primary
#8336CB
secondary
#ADD08D
accent
#E24691
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8336CB

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

Preview Lab → · Contrast checker → · Palette generator →

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