#8338C7#8338C7

#8338C7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.6% C 0.210 H 303.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8338C7
RGBrgb(131, 56, 199)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 78%)
CMYKcmyk(34.2%, 71.9%, 0%, 22%)
CIE-LABlab(40.86, 57.57, -61.42)
CIE-LCHlch(40.86, 84.19, 313.15°)
OKLaboklab(51.58% 0.1166 -0.1748)
OKLCHoklch(51.58% 0.21 303.7)
XYZxyz(21.0807, 11.7772, 55.1844)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C7 #7CC738
analogous
#3C38C7 #8338C7 #C738C3
triadic
#8338C7 #C78338 #38C783
tetradic
#8338C7 #C73C38 #7CC738 #38C3C7
square
#8338C7 #C73C38 #7CC738 #38C3C7
split-complementary
#8338C7 #C3C738 #38C73C
monochromatic
#441D67 #642B97 #8338C7 #A168D4 #BF98E2

Accessibility & contrast

On white

6.26
#8338C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8338C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C7#FFFFFF#000000##FFFFFF
##8338C71.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#765A7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8338c7;
/* rgb */ color: rgb(131, 56, 199);
/* oklch */ color: oklch(51.6% 0.210 303.7);
Tailwind
colors: {
  custom: {
    50: '#ad75d9',
    500: '#8338c7',
    950: '#000000',
  },
}
SCSS
$custom: #8338c7;
$custom-light: #ad75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c7",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 271.469,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.51584,
    "c": 0.21017,
    "h": 303.7
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#8338C7
secondary
#ACCD8D
accent
#DF4890
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338C7

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

Preview Lab → · Contrast checker → · Palette generator →

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