#8338CC#8338CC

#8338CC is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.215 H 302.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8338CC
RGBrgb(131, 56, 204)
HSLhsl(270, 59%, 51%)
HSVhsv(270, 73%, 80%)
CMYKcmyk(35.8%, 72.5%, 0%, 20%)
CIE-LABlab(41.24, 58.74, -63.71)
CIE-LCHlch(41.24, 86.66, 312.68°)
OKLaboklab(51.97% 0.1157 -0.1816)
OKLCHoklch(51.97% 0.215 302.5)
XYZxyz(21.6707, 12.0132, 58.2921)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338CC #81CC38
analogous
#3938CC #8338CC #CC38CB
triadic
#8338CC #CC8338 #38CC83
tetradic
#8338CC #CC3938 #81CC38 #38CBCC
square
#8338CC #CC3938 #81CC38 #38CBCC
split-complementary
#8338CC #CBCC38 #38CC39
monochromatic
#451C6E #64299E #8338CC #A169D8 #C099E5

Accessibility & contrast

On white

6.17
#8338CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8338CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338CC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338CC#FFFFFF#000000##FFFFFF
##8338CC1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#745C7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8338cc;
/* rgb */ color: rgb(131, 56, 204);
/* oklch */ color: oklch(52.0% 0.215 302.5);
Tailwind
colors: {
  custom: {
    50: '#ad75dc',
    500: '#8338cc',
    950: '#000000',
  },
}
SCSS
$custom: #8338cc;
$custom-light: #ad75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8338cc",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 270.405,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5197,
    "c": 0.2153,
    "h": 302.5
  },
  "luminance": 0.12013
}

Semantic roles & 50–950 ramp

primary
#8338CC
secondary
#AFD18F
accent
#E24593
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338CC

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

Preview Lab → · Contrast checker → · Palette generator →

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