#8338C2#8338C2

#8338C2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.205 H 305.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8338C2
RGBrgb(131, 56, 194)
HSLhsl(273, 55%, 49%)
HSVhsv(273, 71%, 76%)
CMYKcmyk(32.5%, 71.1%, 0%, 23.9%)
CIE-LABlab(40.49, 56.41, -59.11)
CIE-LCHlch(40.49, 81.71, 313.66°)
OKLaboklab(51.21% 0.1175 -0.168)
OKLCHoklch(51.21% 0.205 305)
XYZxyz(20.5097, 11.5488, 52.1771)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C2 #77C238
analogous
#3E38C2 #8338C2 #C238BC
triadic
#8338C2 #C28338 #38C283
tetradic
#8338C2 #C23E38 #77C238 #38BCC2
square
#8338C2 #C23E38 #77C238 #38BCC2
split-complementary
#8338C2 #BCC238 #38C23E
monochromatic
#431D63 #632A93 #8338C2 #A065D2 #BE94E0

Accessibility & contrast

On white

6.34
#8338C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8338C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C2#FFFFFF#000000##FFFFFF
##8338C21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#775879
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8338c2;
/* rgb */ color: rgb(131, 56, 194);
/* oklch */ color: oklch(51.2% 0.205 305.0);
Tailwind
colors: {
  custom: {
    50: '#ac75d5',
    500: '#8338c2',
    950: '#000000',
  },
}
SCSS
$custom: #8338c2;
$custom-light: #ac75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c2",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 272.609,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51206,
    "c": 0.20504,
    "h": 305
  },
  "luminance": 0.11549
}

Semantic roles & 50–950 ramp

primary
#8338C2
secondary
#A8CB8A
accent
#DF498D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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