#8335CB#8335CB

#8335CB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.6% C 0.218 H 303.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8335CB
RGBrgb(131, 53, 203)
HSLhsl(271, 59%, 50%)
HSVhsv(271, 74%, 80%)
CMYKcmyk(35.5%, 73.9%, 0%, 20.4%)
CIE-LABlab(40.71, 59.79, -63.99)
CIE-LCHlch(40.71, 87.58, 313.06°)
OKLaboklab(51.57% 0.1187 -0.1824)
OKLCHoklch(51.57% 0.218 303)
XYZxyz(21.4101, 11.6833, 57.6155)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8335CB #7DCB35
analogous
#3835CB #8335CB #CB35C8
triadic
#8335CB #CB8335 #35CB83
tetradic
#8335CB #CB3835 #7DCB35 #35C8CB
square
#8335CB #CB3835 #7DCB35 #35C8CB
split-complementary
#8335CB #C8CB35 #35CB38
monochromatic
#441B6A #64289B #8335CB #A166D8 #BF96E4

Accessibility & contrast

On white

6.29
#8335CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8335CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8335CB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8335CB#FFFFFF#000000##FFFFFF
##8335CB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.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: #8335cb;
/* rgb */ color: rgb(131, 53, 203);
/* oklch */ color: oklch(51.6% 0.218 303.0);
Tailwind
colors: {
  custom: {
    50: '#ad74dc',
    500: '#8335cb',
    950: '#000000',
  },
}
SCSS
$custom: #8335cb;
$custom-light: #ad74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8335cb",
  "rgb": {
    "r": 131,
    "g": 53,
    "b": 203
  },
  "hsl": {
    "h": 271.2,
    "s": 59.055,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51572,
    "c": 0.21758,
    "h": 303
  },
  "luminance": 0.11683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8335CB

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

Preview Lab → · Contrast checker → · Palette generator →

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