#A338A4#A338A4

#A338A4 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.5% C 0.189 H 327.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#A338A4
RGBrgb(163, 56, 164)
HSLhsl(299, 49%, 43%)
HSVhsv(299, 66%, 64%)
CMYKcmyk(0.6%, 65.9%, 0%, 35.7%)
CIE-LABlab(43.21, 57.36, -36.80)
CIE-LCHlch(43.21, 68.15, 327.32°)
OKLaboklab(53.5% 0.1594 -0.1018)
OKLCHoklch(53.5% 0.189 327.4)
XYZxyz(23.2189, 13.2968, 36.4583)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338A4 #39A438
analogous
#6D38A4 #A338A4 #A4386F
triadic
#A338A4 #A4A338 #38A4A3
tetradic
#A338A4 #A46D38 #39A438 #386FA4
square
#A338A4 #A46D38 #39A438 #386FA4
split-complementary
#A338A4 #6FA438 #38A46D
monochromatic
#481949 #762876 #A338A4 #C454C5 #D482D4

Accessibility & contrast

On white

5.74
#A338A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#A338A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338A4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338A4#FFFFFF#000000##FFFFFF
##A338A41.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA7
Deuteranopia (green-blind)
#526BA1
Tritanopia (blue-blind)
#A84769
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a338a4;
/* rgb */ color: rgb(163, 56, 164);
/* oklch */ color: oklch(53.5% 0.189 327.4);
Tailwind
colors: {
  custom: {
    50: '#c177bf',
    500: '#a338a4',
    950: '#000000',
  },
}
SCSS
$custom: #a338a4;
$custom-light: #c177bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a338a4",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 299.444,
    "s": 49.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53496,
    "c": 0.18915,
    "h": 327.4
  },
  "luminance": 0.13295
}

Semantic roles & 50–950 ramp

primary
#A338A4
secondary
#7ABE7A
accent
#D94F50
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A338A4

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

Preview Lab → · Contrast checker → · Palette generator →

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