#A338C8#A338C8

#A338C8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.220 H 315.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#A338C8
RGBrgb(163, 56, 200)
HSLhsl(285, 57%, 50%)
HSVhsv(285, 72%, 78%)
CMYKcmyk(18.5%, 72%, 0%, 21.6%)
CIE-LABlab(45.34, 64.05, -54.55)
CIE-LCHlch(45.34, 84.13, 319.58°)
OKLaboklab(55.71% 0.1582 -0.1536)
OKLCHoklch(55.71% 0.22 315.8)
XYZxyz(26.9421, 14.7860, 56.0672)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338C8 #5DC838
analogous
#5B38C8 #A338C8 #C838A5
triadic
#A338C8 #C8A338 #38C8A3
tetradic
#A338C8 #C85B38 #5DC838 #38A5C8
square
#A338C8 #C85B38 #5DC838 #38A5C8
split-complementary
#A338C8 #A5C838 #38C85B
monochromatic
#551D69 #7C2A99 #A338C8 #B968D5 #CF98E3

Accessibility & contrast

On white

5.31
#A338C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#A338C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338C8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338C8#FFFFFF#000000##FFFFFF
##A338C81.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#366EC5
Tritanopia (blue-blind)
#A0567D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a338c8;
/* rgb */ color: rgb(163, 56, 200);
/* oklch */ color: oklch(55.7% 0.220 315.8);
Tailwind
colors: {
  custom: {
    50: '#c278d9',
    500: '#a338c8',
    950: '#000000',
  },
}
SCSS
$custom: #a338c8;
$custom-light: #c278d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a338c8",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 284.583,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5571,
    "c": 0.22048,
    "h": 315.8
  },
  "luminance": 0.14785
}

Semantic roles & 50–950 ramp

primary
#A338C8
secondary
#9ECE8E
accent
#E0486F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338C8

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

Preview Lab → · Contrast checker → · Palette generator →

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