#A338C3#A338C3

#A338C3 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.216 H 317.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A338C3
RGBrgb(163, 56, 195)
HSLhsl(286, 55%, 49%)
HSVhsv(286, 71%, 76%)
CMYKcmyk(16.4%, 71.3%, 0%, 23.5%)
CIE-LABlab(45.02, 63.08, -52.16)
CIE-LCHlch(45.02, 81.85, 320.41°)
OKLaboklab(55.38% 0.1587 -0.1466)
OKLCHoklch(55.38% 0.216 317.3)
XYZxyz(26.3673, 14.5561, 53.0399)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338C3 #58C338
analogous
#5E38C3 #A338C3 #C3389E
triadic
#A338C3 #C3A338 #38C3A3
tetradic
#A338C3 #C35E38 #58C338 #389EC3
square
#A338C3 #C35E38 #58C338 #389EC3
split-complementary
#A338C3 #9EC338 #38C35E
monochromatic
#541D64 #7B2A93 #A338C3 #BA65D3 #CF95E1

Accessibility & contrast

On white

5.37
#A338C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A338C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338C3
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338C3#FFFFFF#000000##FFFFFF
##A338C31.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a338c3;
/* rgb */ color: rgb(163, 56, 195);
/* oklch */ color: oklch(55.4% 0.216 317.3);
Tailwind
colors: {
  custom: {
    50: '#c278d6',
    500: '#a338c3',
    950: '#000000',
  },
}
SCSS
$custom: #a338c3;
$custom-light: #c278d6;
$custom-dark: #000000;
JSON
{
  "hex": "#a338c3",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 286.187,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5538,
    "c": 0.21602,
    "h": 317.3
  },
  "luminance": 0.14555
}

Semantic roles & 50–950 ramp

primary
#A338C3
secondary
#9ACC8B
accent
#DF496C
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A338C3

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

Preview Lab → · Contrast checker → · Palette generator →

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