#A338B7#A338B7

#A338B7 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.205 H 320.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#A338B7
RGBrgb(163, 56, 183)
HSLhsl(291, 53%, 47%)
HSVhsv(291, 69%, 72%)
CMYKcmyk(10.9%, 69.4%, 0%, 28.2%)
CIE-LABlab(44.28, 60.79, -46.33)
CIE-LCHlch(44.28, 76.43, 322.69°)
OKLaboklab(54.62% 0.1595 -0.1295)
OKLCHoklch(54.62% 0.205 320.9)
XYZxyz(25.0647, 14.0351, 46.1794)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338B7 #4CB738
analogous
#6438B7 #A338B7 #B7388C
triadic
#A338B7 #B7A338 #38B7A3
tetradic
#A338B7 #B76438 #4CB738 #388CB7
square
#A338B7 #B76438 #4CB738 #388CB7
split-complementary
#A338B7 #8CB738 #38B764
monochromatic
#501B59 #792A88 #A338B7 #BC5ECE #D08DDC

Accessibility & contrast

On white

5.52
#A338B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#A338B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338B7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338B7#FFFFFF#000000##FFFFFF
##A338B71.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0161BB
Deuteranopia (green-blind)
#466DB4
Tritanopia (blue-blind)
#A44F73
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a338b7;
/* rgb */ color: rgb(163, 56, 183);
/* oklch */ color: oklch(54.6% 0.205 320.9);
Tailwind
colors: {
  custom: {
    50: '#c278cd',
    500: '#a338b7',
    950: '#000000',
  },
}
SCSS
$custom: #a338b7;
$custom-light: #c278cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a338b7",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 290.551,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54617,
    "c": 0.20543,
    "h": 320.9
  },
  "luminance": 0.14034
}

Semantic roles & 50–950 ramp

primary
#A338B7
secondary
#8FC784
accent
#DD4B62
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A338B7

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

Preview Lab → · Contrast checker → · Palette generator →

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