#8338C6#8338C6

#8338C6 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.209 H 303.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8338C6
RGBrgb(131, 56, 198)
HSLhsl(272, 56%, 50%)
HSVhsv(272, 72%, 78%)
CMYKcmyk(33.8%, 71.7%, 0%, 22.4%)
CIE-LABlab(40.79, 57.34, -60.96)
CIE-LCHlch(40.79, 83.69, 313.24°)
OKLaboklab(51.51% 0.1168 -0.1735)
OKLCHoklch(51.51% 0.209 303.9)
XYZxyz(20.9649, 11.7309, 54.5749)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C6 #7BC638
analogous
#3C38C6 #8338C6 #C638C2
triadic
#8338C6 #C68338 #38C683
tetradic
#8338C6 #C63C38 #7BC638 #38C2C6
square
#8338C6 #C63C38 #7BC638 #38C2C6
split-complementary
#8338C6 #C2C638 #38C63C
monochromatic
#441D67 #632B96 #8338C6 #A167D4 #BE97E2

Accessibility & contrast

On white

6.28
#8338C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8338C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C6
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C6#FFFFFF#000000##FFFFFF
##8338C61.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8338c6;
/* rgb */ color: rgb(131, 56, 198);
/* oklch */ color: oklch(51.5% 0.209 303.9);
Tailwind
colors: {
  custom: {
    50: '#ad75d8',
    500: '#8338c6',
    950: '#000000',
  },
}
SCSS
$custom: #8338c6;
$custom-light: #ad75d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c6",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 271.69,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51508,
    "c": 0.20915,
    "h": 303.9
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#8338C6
secondary
#ABCD8D
accent
#DF4990
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8338C6

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

Preview Lab → · Contrast checker → · Palette generator →

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