#8338B8#8338B8

#8338B8 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.5% C 0.195 H 307.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8338B8
RGBrgb(131, 56, 184)
HSLhsl(275, 53%, 47%)
HSVhsv(275, 70%, 72%)
CMYKcmyk(28.8%, 69.6%, 0%, 27.8%)
CIE-LABlab(39.77, 54.11, -54.41)
CIE-LCHlch(39.77, 76.74, 314.84°)
OKLaboklab(50.47% 0.1189 -0.1542)
OKLCHoklch(50.47% 0.195 307.6)
XYZxyz(19.4242, 11.1146, 46.4602)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338B8 #6DB838
analogous
#4338B8 #8338B8 #B838AD
triadic
#8338B8 #B88338 #38B883
tetradic
#8338B8 #B84338 #6DB838 #38ADB8
square
#8338B8 #B84338 #6DB838 #38ADB8
split-complementary
#8338B8 #ADB838 #38B843
monochromatic
#401B5A #622A89 #8338B8 #A05FCE #BC8EDD

Accessibility & contrast

On white

6.52
#8338B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8338B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338B8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338B8#FFFFFF#000000##FFFFFF
##8338B81.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#165EB5
Tritanopia (blue-blind)
#7A5574
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8338b8;
/* rgb */ color: rgb(131, 56, 184);
/* oklch */ color: oklch(50.5% 0.195 307.6);
Tailwind
colors: {
  custom: {
    50: '#ab75ce',
    500: '#8338b8',
    950: '#000000',
  },
}
SCSS
$custom: #8338b8;
$custom-light: #ab75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8338b8",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 275.156,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50469,
    "c": 0.19477,
    "h": 307.6
  },
  "luminance": 0.11114
}

Semantic roles & 50–950 ramp

primary
#8338B8
secondary
#A0C785
accent
#DD4B87
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8338B8

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

Preview Lab → · Contrast checker → · Palette generator →

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