#8338C0#8338C0

#8338C0 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.203 H 305.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8338C0
RGBrgb(131, 56, 192)
HSLhsl(273, 55%, 49%)
HSVhsv(273, 71%, 75%)
CMYKcmyk(31.8%, 70.8%, 0%, 24.7%)
CIE-LABlab(40.34, 55.95, -58.18)
CIE-LCHlch(40.34, 80.71, 313.88°)
OKLaboklab(51.06% 0.1178 -0.1653)
OKLCHoklch(51.06% 0.203 305.5)
XYZxyz(20.2866, 11.4596, 51.0021)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C0 #75C038
analogous
#3F38C0 #8338C0 #C038B9
triadic
#8338C0 #C08338 #38C083
tetradic
#8338C0 #C03F38 #75C038 #38B9C0
square
#8338C0 #C03F38 #75C038 #38B9C0
split-complementary
#8338C0 #B9C038 #38C03F
monochromatic
#421C61 #632A91 #8338C0 #A064D2 #BD93DF

Accessibility & contrast

On white

6.38
#8338C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8338C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C0
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C0#FFFFFF#000000##FFFFFF
##8338C01.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC4
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#785878
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8338c0;
/* rgb */ color: rgb(131, 56, 192);
/* oklch */ color: oklch(51.1% 0.203 305.5);
Tailwind
colors: {
  custom: {
    50: '#ac75d4',
    500: '#8338c0',
    950: '#000000',
  },
}
SCSS
$custom: #8338c0;
$custom-light: #ac75d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c0",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 273.088,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51056,
    "c": 0.20299,
    "h": 305.5
  },
  "luminance": 0.11459
}

Semantic roles & 50–950 ramp

primary
#8338C0
secondary
#A7CB89
accent
#DE4A8C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8338C0

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

Preview Lab → · Contrast checker → · Palette generator →

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