#A338AB#A338AB

#A338AB is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.9% C 0.195 H 324.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#A338AB
RGBrgb(163, 56, 171)
HSLhsl(296, 51%, 45%)
HSVhsv(296, 67%, 67%)
CMYKcmyk(4.7%, 67.3%, 0%, 32.9%)
CIE-LABlab(43.59, 58.60, -40.35)
CIE-LCHlch(43.59, 71.15, 325.45°)
OKLaboklab(53.9% 0.1596 -0.1121)
OKLCHoklch(53.9% 0.195 324.9)
XYZxyz(23.8685, 13.5566, 39.8797)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338AB #40AB38
analogous
#6A38AB #A338AB #AB387A
triadic
#A338AB #ABA338 #38ABA3
tetradic
#A338AB #AB6A38 #40AB38 #387AAB
square
#A338AB #AB6A38 #40AB38 #387AAB
split-complementary
#A338AB #7AAB38 #38AB6A
monochromatic
#4B1A4F #77297D #A338AB #C058C8 #D286D7

Accessibility & contrast

On white

5.66
#A338AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#A338AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338AB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338AB#FFFFFF#000000##FFFFFF
##A338AB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5FAE
Deuteranopia (green-blind)
#4E6BA8
Tritanopia (blue-blind)
#A74A6D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a338ab;
/* rgb */ color: rgb(163, 56, 171);
/* oklch */ color: oklch(53.9% 0.195 324.9);
Tailwind
colors: {
  custom: {
    50: '#c277c4',
    500: '#a338ab',
    950: '#000000',
  },
}
SCSS
$custom: #a338ab;
$custom-light: #c277c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a338ab",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 295.826,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53897,
    "c": 0.19505,
    "h": 324.9
  },
  "luminance": 0.13555
}

Semantic roles & 50–950 ramp

primary
#A338AB
secondary
#82C17D
accent
#DA4E57
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A338AB

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

Preview Lab → · Contrast checker → · Palette generator →

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