#A338C2#A338C2

#A338C2 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.215 H 317.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#A338C2
RGBrgb(163, 56, 194)
HSLhsl(287, 55%, 49%)
HSVhsv(287, 71%, 76%)
CMYKcmyk(16%, 71.1%, 0%, 23.9%)
CIE-LABlab(44.96, 62.88, -51.68)
CIE-LCHlch(44.96, 81.39, 320.59°)
OKLaboklab(55.32% 0.1588 -0.1452)
OKLCHoklch(55.32% 0.215 317.6)
XYZxyz(26.2546, 14.5111, 52.4464)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338C2 #57C238
analogous
#5E38C2 #A338C2 #C2389C
triadic
#A338C2 #C2A338 #38C2A3
tetradic
#A338C2 #C25E38 #57C238 #389CC2
square
#A338C2 #C25E38 #57C238 #389CC2
split-complementary
#A338C2 #9CC238 #38C25E
monochromatic
#531D63 #7B2A93 #A338C2 #BA65D2 #CF94E0

Accessibility & contrast

On white

5.38
#A338C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A338C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338C2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338C2#FFFFFF#000000##FFFFFF
##A338C21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#3C6EBF
Tritanopia (blue-blind)
#A2547A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a338c2;
/* rgb */ color: rgb(163, 56, 194);
/* oklch */ color: oklch(55.3% 0.215 317.6);
Tailwind
colors: {
  custom: {
    50: '#c278d5',
    500: '#a338c2',
    950: '#000000',
  },
}
SCSS
$custom: #a338c2;
$custom-light: #c278d5;
$custom-dark: #000000;
JSON
{
  "hex": "#a338c2",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 286.522,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55315,
    "c": 0.21513,
    "h": 317.6
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#A338C2
secondary
#99CB8A
accent
#DF496B
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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