#A338C9#A338C9

#A338C9 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.221 H 315.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#A338C9
RGBrgb(163, 56, 201)
HSLhsl(284, 57%, 50%)
HSVhsv(284, 72%, 79%)
CMYKcmyk(18.9%, 72.1%, 0%, 21.2%)
CIE-LABlab(45.40, 64.25, -55.02)
CIE-LCHlch(45.40, 84.59, 319.42°)
OKLaboklab(55.78% 0.1581 -0.155)
OKLCHoklch(55.78% 0.221 315.6)
XYZxyz(27.0594, 14.8329, 56.6847)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338C9 #5EC938
analogous
#5A38C9 #A338C9 #C938A6
triadic
#A338C9 #C9A338 #38C9A3
tetradic
#A338C9 #C95A38 #5EC938 #38A6C9
square
#A338C9 #C95A38 #5EC938 #38A6C9
split-complementary
#A338C9 #A6C938 #38C95A
monochromatic
#561D6A #7D2A9A #A338C9 #B968D6 #D098E3

Accessibility & contrast

On white

5.29
#A338C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#A338C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338C9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338C9#FFFFFF#000000##FFFFFF
##A338C91.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#356EC6
Tritanopia (blue-blind)
#A0577D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a338c9;
/* rgb */ color: rgb(163, 56, 201);
/* oklch */ color: oklch(55.8% 0.221 315.6);
Tailwind
colors: {
  custom: {
    50: '#c278da',
    500: '#a338c9',
    950: '#000000',
  },
}
SCSS
$custom: #a338c9;
$custom-light: #c278da;
$custom-dark: #000000;
JSON
{
  "hex": "#a338c9",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 284.276,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55776,
    "c": 0.22138,
    "h": 315.6
  },
  "luminance": 0.14832
}

Semantic roles & 50–950 ramp

primary
#A338C9
secondary
#9FCF8E
accent
#E1476F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338C9

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

Preview Lab → · Contrast checker → · Palette generator →

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