#AA38CD#AA38CD

#AA38CD is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.227 H 316.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AA38CD
RGBrgb(170, 56, 205)
HSLhsl(286, 60%, 51%)
HSVhsv(286, 73%, 80%)
CMYKcmyk(17.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(46.69, 66.43, -55.21)
CIE-LCHlch(46.69, 86.38, 320.27°)
OKLaboklab(56.98% 0.1662 -0.1553)
OKLCHoklch(56.98% 0.227 316.9)
XYZxyz(29.0095, 15.7834, 59.2642)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38CD #5BCD38
analogous
#5F38CD #AA38CD #CD38A5
triadic
#AA38CD #CDAA38 #38CDAA
tetradic
#AA38CD #CD5F38 #5BCD38 #38A5CD
square
#AA38CD #CD5F38 #5BCD38 #38A5CD
split-complementary
#AA38CD #A5CD38 #38CD5F
monochromatic
#5B1C6F #8428A0 #AA38CD #BF69D9 #D49AE6

Accessibility & contrast

On white

5.05
#AA38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#AA38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38CD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38CD#FFFFFF#000000##FFFFFF
##AA38CD1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#3A72CA
Tritanopia (blue-blind)
#A85780
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa38cd;
/* rgb */ color: rgb(170, 56, 205);
/* oklch */ color: oklch(57.0% 0.227 316.9);
Tailwind
colors: {
  custom: {
    50: '#c779dd',
    500: '#aa38cd',
    950: '#000000',
  },
}
SCSS
$custom: #aa38cd;
$custom-light: #c779dd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38cd",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 285.906,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56979,
    "c": 0.22746,
    "h": 316.9
  },
  "luminance": 0.15782
}

Semantic roles & 50–950 ramp

primary
#AA38CD
secondary
#9FD18F
accent
#E3456A
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AA38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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