#8338A5#8338A5

#8338A5 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.2% C 0.175 H 313.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#8338A5
RGBrgb(131, 56, 165)
HSLhsl(281, 49%, 43%)
HSVhsv(281, 66%, 65%)
CMYKcmyk(20.6%, 66.1%, 0%, 35.3%)
CIE-LABlab(38.50, 49.88, -45.18)
CIE-LCHlch(38.50, 67.30, 317.83°)
OKLaboklab(49.15% 0.1206 -0.1271)
OKLCHoklch(49.15% 0.175 313.5)
XYZxyz(17.5646, 10.3708, 36.6665)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338A5 #5AA538
analogous
#4C38A5 #8338A5 #A53890
triadic
#8338A5 #A58338 #38A583
tetradic
#8338A5 #A54C38 #5AA538 #3890A5
square
#8338A5 #A54C38 #5AA538 #3890A5
split-complementary
#8338A5 #90A538 #38A54C
monochromatic
#3A194A #5F2877 #8338A5 #A255C5 #BB83D5

Accessibility & contrast

On white

6.83
#8338A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8338A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338A5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338A5#FFFFFF#000000##FFFFFF
##8338A51.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#325CA2
Tritanopia (blue-blind)
#804D6A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8338a5;
/* rgb */ color: rgb(131, 56, 165);
/* oklch */ color: oklch(49.2% 0.175 313.5);
Tailwind
colors: {
  custom: {
    50: '#aa74c0',
    500: '#8338a5',
    950: '#000000',
  },
}
SCSS
$custom: #8338a5;
$custom-light: #aa74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8338a5",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 165
  },
  "hsl": {
    "h": 281.284,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49151,
    "c": 0.17527,
    "h": 313.5
  },
  "luminance": 0.1037
}

Semantic roles & 50–950 ramp

primary
#8338A5
secondary
#90BE7A
accent
#D94F7A
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #8338A5

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

Preview Lab → · Contrast checker → · Palette generator →

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