#A338A2#A338A2

#A338A2 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.4% C 0.187 H 328.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#A338A2
RGBrgb(163, 56, 162)
HSLhsl(301, 49%, 43%)
HSVhsv(301, 66%, 64%)
CMYKcmyk(0%, 65.6%, 0.6%, 36.1%)
CIE-LABlab(43.10, 57.01, -35.77)
CIE-LCHlch(43.10, 67.31, 327.89°)
OKLaboklab(53.39% 0.1593 -0.0988)
OKLCHoklch(53.39% 0.187 328.2)
XYZxyz(23.0397, 13.2251, 35.5146)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338A2 #38A339
analogous
#6E38A3 #A338A2 #A3386C
triadic
#A338A2 #A2A338 #38A2A3
tetradic
#A338A2 #A36E38 #38A339 #386CA3
square
#A338A2 #A36E38 #38A339 #386CA3
split-complementary
#A338A2 #6CA338 #38A36E
monochromatic
#481947 #752875 #A338A2 #C454C3 #D482D3

Accessibility & contrast

On white

5.76
#A338A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#A338A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338A2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338A2#FFFFFF#000000##FFFFFF
##A338A21.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#536B9F
Tritanopia (blue-blind)
#A84668
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a338a2;
/* rgb */ color: rgb(163, 56, 162);
/* oklch */ color: oklch(53.4% 0.187 328.2);
Tailwind
colors: {
  custom: {
    50: '#c177be',
    500: '#a338a2',
    950: '#000000',
  },
}
SCSS
$custom: #a338a2;
$custom-light: #c177be;
$custom-dark: #000000;
JSON
{
  "hex": "#a338a2",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 300.561,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53385,
    "c": 0.18748,
    "h": 328.2
  },
  "luminance": 0.13224
}

Semantic roles & 50–950 ramp

primary
#A338A2
secondary
#79BD7A
accent
#D8514F
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A338A2

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

Preview Lab → · Contrast checker → · Palette generator →

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