#A338C7#A338C7

#A338C7 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.220 H 316.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#A338C7
RGBrgb(163, 56, 199)
HSLhsl(285, 56%, 50%)
HSVhsv(285, 72%, 78%)
CMYKcmyk(18.1%, 71.9%, 0%, 22%)
CIE-LABlab(45.28, 63.86, -54.07)
CIE-LCHlch(45.28, 83.67, 319.74°)
OKLaboklab(55.64% 0.1583 -0.1522)
OKLCHoklch(55.64% 0.22 316.1)
XYZxyz(26.8256, 14.7395, 55.4537)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338C7 #5CC738
analogous
#5C38C7 #A338C7 #C738A3
triadic
#A338C7 #C7A338 #38C7A3
tetradic
#A338C7 #C75C38 #5CC738 #38A3C7
square
#A338C7 #C75C38 #5CC738 #38A3C7
split-complementary
#A338C7 #A3C738 #38C75C
monochromatic
#551D67 #7C2B97 #A338C7 #B968D4 #CF98E2

Accessibility & contrast

On white

5.32
#A338C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#A338C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338C7
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338C7#FFFFFF#000000##FFFFFF
##A338C71.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#376EC4
Tritanopia (blue-blind)
#A1567C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a338c7;
/* rgb */ color: rgb(163, 56, 199);
/* oklch */ color: oklch(55.6% 0.220 316.1);
Tailwind
colors: {
  custom: {
    50: '#c278d9',
    500: '#a338c7',
    950: '#000000',
  },
}
SCSS
$custom: #a338c7;
$custom-light: #c278d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a338c7",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 284.895,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.55643,
    "c": 0.21959,
    "h": 316.1
  },
  "luminance": 0.14738
}

Semantic roles & 50–950 ramp

primary
#A338C7
secondary
#9DCD8D
accent
#DF486E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338C7

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

Preview Lab → · Contrast checker → · Palette generator →

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