#8338A7#8338A7

#8338A7 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.3% C 0.177 H 312.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8338A7
RGBrgb(131, 56, 167)
HSLhsl(281, 50%, 44%)
HSVhsv(281, 66%, 65%)
CMYKcmyk(21.6%, 66.5%, 0%, 34.5%)
CIE-LABlab(38.63, 50.32, -46.17)
CIE-LCHlch(38.63, 68.29, 317.46°)
OKLaboklab(49.28% 0.1205 -0.13)
OKLCHoklch(49.28% 0.177 312.8)
XYZxyz(17.7481, 10.4442, 37.6327)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338A7 #5CA738
analogous
#4B38A7 #8338A7 #A73893
triadic
#8338A7 #A78338 #38A783
tetradic
#8338A7 #A74B38 #5CA738 #3893A7
square
#8338A7 #A74B38 #5CA738 #3893A7
split-complementary
#8338A7 #93A738 #38A74B
monochromatic
#3B194B #5F2979 #8338A7 #A256C6 #BB84D6

Accessibility & contrast

On white

6.80
#8338A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8338A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338A7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338A7#FFFFFF#000000##FFFFFF
##8338A71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#305DA4
Tritanopia (blue-blind)
#7F4E6B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8338a7;
/* rgb */ color: rgb(131, 56, 167);
/* oklch */ color: oklch(49.3% 0.177 312.8);
Tailwind
colors: {
  custom: {
    50: '#aa74c2',
    500: '#8338a7',
    950: '#000000',
  },
}
SCSS
$custom: #8338a7;
$custom-light: #aa74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8338a7",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 280.541,
    "s": 49.776,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49284,
    "c": 0.17731,
    "h": 312.8
  },
  "luminance": 0.10444
}

Semantic roles & 50–950 ramp

primary
#8338A7
secondary
#91BF7B
accent
#D94F7C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #8338A7

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

Preview Lab → · Contrast checker → · Palette generator →

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