#8338CA#8338CA

#8338CA is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.8% C 0.213 H 303.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8338CA
RGBrgb(131, 56, 202)
HSLhsl(271, 58%, 51%)
HSVhsv(271, 72%, 79%)
CMYKcmyk(35.1%, 72.3%, 0%, 20.8%)
CIE-LABlab(41.09, 58.27, -62.80)
CIE-LCHlch(41.09, 85.67, 312.86°)
OKLaboklab(51.82% 0.1161 -0.1789)
OKLCHoklch(51.82% 0.213 303)
XYZxyz(21.4324, 11.9179, 57.0369)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338CA #7FCA38
analogous
#3A38CA #8338CA #CA38C8
triadic
#8338CA #CA8338 #38CA83
tetradic
#8338CA #CA3A38 #7FCA38 #38C8CA
square
#8338CA #CA3A38 #7FCA38 #38C8CA
split-complementary
#8338CA #C8CA38 #38CA3A
monochromatic
#451D6B #64299B #8338CA #A168D7 #BF99E4

Accessibility & contrast

On white

6.21
#8338CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8338CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338CA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338CA#FFFFFF#000000##FFFFFF
##8338CA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#755C7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8338ca;
/* rgb */ color: rgb(131, 56, 202);
/* oklch */ color: oklch(51.8% 0.213 303.0);
Tailwind
colors: {
  custom: {
    50: '#ad75db',
    500: '#8338ca',
    950: '#000000',
  },
}
SCSS
$custom: #8338ca;
$custom-light: #ad75db;
$custom-dark: #000000;
JSON
{
  "hex": "#8338ca",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 270.822,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.21325,
    "h": 303
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#8338CA
secondary
#AECF8E
accent
#E14792
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338CA

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

Preview Lab → · Contrast checker → · Palette generator →

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