#A338CA#A338CA

#A338CA is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.222 H 315.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#A338CA
RGBrgb(163, 56, 202)
HSLhsl(284, 58%, 51%)
HSVhsv(284, 72%, 79%)
CMYKcmyk(19.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(45.47, 64.45, -55.49)
CIE-LCHlch(45.47, 85.05, 319.27°)
OKLaboklab(55.84% 0.158 -0.1564)
OKLCHoklch(55.84% 0.222 315.3)
XYZxyz(27.1774, 14.8801, 57.3062)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338CA #5FCA38
analogous
#5A38CA #A338CA #CA38A8
triadic
#A338CA #CAA338 #38CAA3
tetradic
#A338CA #CA5A38 #5FCA38 #38A8CA
square
#A338CA #CA5A38 #5FCA38 #38A8CA
split-complementary
#A338CA #A8CA38 #38CA5A
monochromatic
#561D6B #7D299B #A338CA #B968D7 #D099E4

Accessibility & contrast

On white

5.28
#A338CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A338CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338CA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338CA#FFFFFF#000000##FFFFFF
##A338CA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#346EC7
Tritanopia (blue-blind)
#A0577E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a338ca;
/* rgb */ color: rgb(163, 56, 202);
/* oklch */ color: oklch(55.8% 0.222 315.3);
Tailwind
colors: {
  custom: {
    50: '#c279db',
    500: '#a338ca',
    950: '#000000',
  },
}
SCSS
$custom: #a338ca;
$custom-light: #c279db;
$custom-dark: #000000;
JSON
{
  "hex": "#a338ca",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 283.973,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55843,
    "c": 0.22227,
    "h": 315.3
  },
  "luminance": 0.14879
}

Semantic roles & 50–950 ramp

primary
#A338CA
secondary
#A0CF8E
accent
#E14770
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338CA

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

Preview Lab → · Contrast checker → · Palette generator →

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