#8338C9#8338C9

#8338C9 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.212 H 303.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8338C9
RGBrgb(131, 56, 201)
HSLhsl(271, 57%, 50%)
HSVhsv(271, 72%, 79%)
CMYKcmyk(34.8%, 72.1%, 0%, 21.2%)
CIE-LABlab(41.01, 58.04, -62.34)
CIE-LCHlch(41.01, 85.18, 312.95°)
OKLaboklab(51.74% 0.1163 -0.1776)
OKLCHoklch(51.74% 0.212 303.2)
XYZxyz(21.3144, 11.8707, 56.4154)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C9 #7EC938
analogous
#3A38C9 #8338C9 #C938C7
triadic
#8338C9 #C98338 #38C983
tetradic
#8338C9 #C93A38 #7EC938 #38C7C9
square
#8338C9 #C93A38 #7EC938 #38C7C9
split-complementary
#8338C9 #C7C938 #38C93A
monochromatic
#451D6A #642A9A #8338C9 #A168D6 #BF98E3

Accessibility & contrast

On white

6.22
#8338C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8338C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C9
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C9#FFFFFF#000000##FFFFFF
##8338C91.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)
#005FCD
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#755B7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8338c9;
/* rgb */ color: rgb(131, 56, 201);
/* oklch */ color: oklch(51.7% 0.212 303.2);
Tailwind
colors: {
  custom: {
    50: '#ad75da',
    500: '#8338c9',
    950: '#000000',
  },
}
SCSS
$custom: #8338c9;
$custom-light: #ad75da;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c9",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 271.034,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51738,
    "c": 0.21223,
    "h": 303.2
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#8338C9
secondary
#ADCF8E
accent
#E14791
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338C9

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

Preview Lab → · Contrast checker → · Palette generator →

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