#A338B4#A338B4

#A338B4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.4% C 0.203 H 321.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#A338B4
RGBrgb(163, 56, 180)
HSLhsl(292, 53%, 46%)
HSVhsv(292, 69%, 71%)
CMYKcmyk(9.4%, 68.9%, 0%, 29.4%)
CIE-LABlab(44.11, 60.24, -44.85)
CIE-LCHlch(44.11, 75.10, 323.33°)
OKLaboklab(54.43% 0.1596 -0.1252)
OKLCHoklch(54.43% 0.203 321.9)
XYZxyz(24.7558, 13.9115, 44.5524)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338B4 #49B438
analogous
#6538B4 #A338B4 #B43887
triadic
#A338B4 #B4A338 #38B4A3
tetradic
#A338B4 #B46538 #49B438 #3887B4
square
#A338B4 #B46538 #49B438 #3887B4
split-complementary
#A338B4 #87B438 #38B465
monochromatic
#4E1B57 #792985 #A338B4 #BD5DCD #D08BDB

Accessibility & contrast

On white

5.55
#A338B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#A338B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338B4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338B4#FFFFFF#000000##FFFFFF
##A338B41.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D61B8
Deuteranopia (green-blind)
#486CB1
Tritanopia (blue-blind)
#A54E72
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a338b4;
/* rgb */ color: rgb(163, 56, 180);
/* oklch */ color: oklch(54.4% 0.203 321.9);
Tailwind
colors: {
  custom: {
    50: '#c278cb',
    500: '#a338b4',
    950: '#000000',
  },
}
SCSS
$custom: #a338b4;
$custom-light: #c278cb;
$custom-dark: #000000;
JSON
{
  "hex": "#a338b4",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 291.774,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54433,
    "c": 0.20281,
    "h": 321.9
  },
  "luminance": 0.1391
}

Semantic roles & 50–950 ramp

primary
#A338B4
secondary
#8CC582
accent
#DC4C60
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A338B4

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

Preview Lab → · Contrast checker → · Palette generator →

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