#8338CF#8338CF

#8338CF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.218 H 301.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8338CF
RGBrgb(131, 56, 207)
HSLhsl(270, 61%, 52%)
HSVhsv(270, 73%, 81%)
CMYKcmyk(36.7%, 72.9%, 0%, 18.8%)
CIE-LABlab(41.47, 59.45, -65.07)
CIE-LCHlch(41.47, 88.14, 312.41°)
OKLaboklab(52.2% 0.1151 -0.1856)
OKLCHoklch(52.2% 0.218 301.8)
XYZxyz(22.0340, 12.1585, 60.2054)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338CF #84CF38
analogous
#3839CF #8338CF #CF38CF
triadic
#8338CF #CF8338 #38CF83
tetradic
#8338CF #CF3839 #84CF38 #38CFCF
square
#8338CF #CF3839 #84CF38 #38CFCF
split-complementary
#8338CF #CFCF38 #39CF38
monochromatic
#461B71 #6427A3 #8338CF #A269DB #C09BE7

Accessibility & contrast

On white

6.12
#8338CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8338CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338CF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338CF#FFFFFF#000000##FFFFFF
##8338CF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#735E81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8338cf;
/* rgb */ color: rgb(131, 56, 207);
/* oklch */ color: oklch(52.2% 0.218 301.8);
Tailwind
colors: {
  custom: {
    50: '#ad75df',
    500: '#8338cf',
    950: '#000000',
  },
}
SCSS
$custom: #8338cf;
$custom-light: #ad75df;
$custom-dark: #000000;
JSON
{
  "hex": "#8338cf",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 269.801,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52204,
    "c": 0.21837,
    "h": 301.8
  },
  "luminance": 0.12159
}

Semantic roles & 50–950 ramp

primary
#8338CF
secondary
#B2D390
accent
#E44494
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338CF

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

Preview Lab → · Contrast checker → · Palette generator →

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