#A338D4#A338D4

#A338D4 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.231 H 312.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#A338D4
RGBrgb(163, 56, 212)
HSLhsl(281, 64%, 53%)
HSVhsv(281, 74%, 83%)
CMYKcmyk(23.1%, 73.6%, 0%, 16.9%)
CIE-LABlab(46.14, 66.44, -60.18)
CIE-LCHlch(46.14, 89.65, 317.83°)
OKLaboklab(56.53% 0.1567 -0.1701)
OKLCHoklch(56.53% 0.231 312.6)
XYZxyz(28.4000, 15.3692, 63.7451)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338D4 #69D438
analogous
#5538D4 #A338D4 #D438B7
triadic
#A338D4 #D4A338 #38D4A3
tetradic
#A338D4 #D45538 #69D438 #38B7D4
square
#A338D4 #D45538 #69D438 #38B7D4
split-complementary
#A338D4 #B7D438 #38D455
monochromatic
#5A1A78 #8025AA #A338D4 #BA6ADF #D29DEA

Accessibility & contrast

On white

5.16
#A338D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#A338D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338D4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338D4#FFFFFF#000000##FFFFFF
##A338D41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#256FD1
Tritanopia (blue-blind)
#9D5B84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a338d4;
/* rgb */ color: rgb(163, 56, 212);
/* oklch */ color: oklch(56.5% 0.231 312.6);
Tailwind
colors: {
  custom: {
    50: '#c379e2',
    500: '#a338d4',
    950: '#000000',
  },
}
SCSS
$custom: #a338d4;
$custom-light: #c379e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a338d4",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 281.154,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56527,
    "c": 0.23126,
    "h": 312.6
  },
  "luminance": 0.15368
}

Semantic roles & 50–950 ramp

primary
#A338D4
secondary
#A7D692
accent
#E74075
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338D4

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

Preview Lab → · Contrast checker → · Palette generator →

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