#8338A8#8338A8

#8338A8 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.4% C 0.178 H 312.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8338A8
RGBrgb(131, 56, 168)
HSLhsl(280, 50%, 44%)
HSVhsv(280, 67%, 66%)
CMYKcmyk(22%, 66.7%, 0%, 34.1%)
CIE-LABlab(38.69, 50.54, -46.66)
CIE-LCHlch(38.69, 68.79, 317.28°)
OKLaboklab(49.35% 0.1205 -0.1315)
OKLCHoklch(49.35% 0.178 312.5)
XYZxyz(17.8409, 10.4813, 38.1215)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338A8 #5DA838
analogous
#4B38A8 #8338A8 #A83895
triadic
#8338A8 #A88338 #38A883
tetradic
#8338A8 #A84B38 #5DA838 #3895A8
square
#8338A8 #A84B38 #5DA838 #3895A8
split-complementary
#8338A8 #95A838 #38A84B
monochromatic
#3B194C #5F297A #8338A8 #A256C7 #BB84D6

Accessibility & contrast

On white

6.78
#8338A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8338A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338A8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338A8#FFFFFF#000000##FFFFFF
##8338A81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#2F5DA5
Tritanopia (blue-blind)
#7F4E6B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8338a8;
/* rgb */ color: rgb(131, 56, 168);
/* oklch */ color: oklch(49.4% 0.178 312.5);
Tailwind
colors: {
  custom: {
    50: '#aa74c2',
    500: '#8338a8',
    950: '#000000',
  },
}
SCSS
$custom: #8338a8;
$custom-light: #aa74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8338a8",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 280.179,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49351,
    "c": 0.17833,
    "h": 312.5
  },
  "luminance": 0.10481
}

Semantic roles & 50–950 ramp

primary
#8338A8
secondary
#92C07C
accent
#DA4E7C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #8338A8

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

Preview Lab → · Contrast checker → · Palette generator →

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