#A338D7#A338D7

#A338D7 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.7% C 0.234 H 311.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A338D7
RGBrgb(163, 56, 215)
HSLhsl(280, 67%, 53%)
HSVhsv(280, 74%, 84%)
CMYKcmyk(24.2%, 74%, 0%, 15.7%)
CIE-LABlab(46.34, 67.05, -61.57)
CIE-LCHlch(46.34, 91.03, 317.44°)
OKLaboklab(56.74% 0.1562 -0.1742)
OKLCHoklch(56.74% 0.234 311.9)
XYZxyz(28.7819, 15.5220, 65.7567)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338D7 #6CD738
analogous
#5338D7 #A338D7 #D738BC
triadic
#A338D7 #D7A338 #38D7A3
tetradic
#A338D7 #D75338 #6CD738 #38BCD7
square
#A338D7 #D75338 #6CD738 #38BCD7
split-complementary
#A338D7 #BCD738 #38D753
monochromatic
#5B197C #8123AF #A338D7 #BB6BE1 #D29EEB

Accessibility & contrast

On white

5.12
#A338D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#A338D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338D7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338D7#FFFFFF#000000##FFFFFF
##A338D71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#1F70D4
Tritanopia (blue-blind)
#9D5D85
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a338d7;
/* rgb */ color: rgb(163, 56, 215);
/* oklch */ color: oklch(56.7% 0.234 311.9);
Tailwind
colors: {
  custom: {
    50: '#c379e4',
    500: '#a338d7',
    950: '#000000',
  },
}
SCSS
$custom: #a338d7;
$custom-light: #c379e4;
$custom-dark: #000000;
JSON
{
  "hex": "#a338d7",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 280.377,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56737,
    "c": 0.23397,
    "h": 311.9
  },
  "luminance": 0.15521
}

Semantic roles & 50–950 ramp

primary
#A338D7
secondary
#AAD893
accent
#E93E76
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A338D7

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

Preview Lab → · Contrast checker → · Palette generator →

#A338D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva