#A338C5#A338C5

#A338C5 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.218 H 316.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#A338C5
RGBrgb(163, 56, 197)
HSLhsl(286, 56%, 50%)
HSVhsv(286, 72%, 77%)
CMYKcmyk(17.3%, 71.6%, 0%, 22.7%)
CIE-LABlab(45.15, 63.47, -53.12)
CIE-LCHlch(45.15, 82.76, 320.07°)
OKLaboklab(55.51% 0.1585 -0.1494)
OKLCHoklch(55.51% 0.218 316.7)
XYZxyz(26.5950, 14.6472, 54.2388)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338C5 #5AC538
analogous
#5D38C5 #A338C5 #C538A1
triadic
#A338C5 #C5A338 #38C5A3
tetradic
#A338C5 #C55D38 #5AC538 #38A1C5
square
#A338C5 #C55D38 #5AC538 #38A1C5
split-complementary
#A338C5 #A1C538 #38C55D
monochromatic
#541D66 #7C2A95 #A338C5 #B967D4 #CF96E1

Accessibility & contrast

On white

5.34
#A338C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#A338C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338C5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338C5#FFFFFF#000000##FFFFFF
##A338C51.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#396EC2
Tritanopia (blue-blind)
#A1557B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a338c5;
/* rgb */ color: rgb(163, 56, 197);
/* oklch */ color: oklch(55.5% 0.218 316.7);
Tailwind
colors: {
  custom: {
    50: '#c278d7',
    500: '#a338c5',
    950: '#000000',
  },
}
SCSS
$custom: #a338c5;
$custom-light: #c278d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a338c5",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 285.532,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55511,
    "c": 0.21781,
    "h": 316.7
  },
  "luminance": 0.14646
}

Semantic roles & 50–950 ramp

primary
#A338C5
secondary
#9CCD8C
accent
#DF496D
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A338C5

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

Preview Lab → · Contrast checker → · Palette generator →

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