#8338C8#8338C8

#8338C8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.7% C 0.211 H 303.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8338C8
RGBrgb(131, 56, 200)
HSLhsl(271, 57%, 50%)
HSVhsv(271, 72%, 78%)
CMYKcmyk(34.5%, 72%, 0%, 21.6%)
CIE-LABlab(40.93, 57.81, -61.88)
CIE-LCHlch(40.93, 84.68, 313.05°)
OKLaboklab(51.66% 0.1164 -0.1762)
OKLCHoklch(51.66% 0.211 303.5)
XYZxyz(21.1971, 11.8238, 55.7979)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C8 #7DC838
analogous
#3B38C8 #8338C8 #C838C5
triadic
#8338C8 #C88338 #38C883
tetradic
#8338C8 #C83B38 #7DC838 #38C5C8
square
#8338C8 #C83B38 #7DC838 #38C5C8
split-complementary
#8338C8 #C5C838 #38C83B
monochromatic
#441D69 #642A99 #8338C8 #A168D5 #BF98E3

Accessibility & contrast

On white

6.24
#8338C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8338C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C8
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C8#FFFFFF#000000##FFFFFF
##8338C81.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)
#005FCC
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#755B7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8338c8;
/* rgb */ color: rgb(131, 56, 200);
/* oklch */ color: oklch(51.7% 0.211 303.5);
Tailwind
colors: {
  custom: {
    50: '#ad75da',
    500: '#8338c8',
    950: '#000000',
  },
}
SCSS
$custom: #8338c8;
$custom-light: #ad75da;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c8",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 271.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51661,
    "c": 0.2112,
    "h": 303.5
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#8338C8
secondary
#ADCE8E
accent
#E04891
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338C8

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

Preview Lab → · Contrast checker → · Palette generator →

#8338C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva