#AA38CB#AA38CB

#AA38CB is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.226 H 317.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AA38CB
RGBrgb(170, 56, 203)
HSLhsl(287, 59%, 51%)
HSVhsv(287, 72%, 80%)
CMYKcmyk(16.3%, 72.4%, 0%, 20.4%)
CIE-LABlab(46.56, 66.05, -54.26)
CIE-LCHlch(46.56, 85.48, 320.60°)
OKLaboklab(56.85% 0.1664 -0.1525)
OKLCHoklch(56.85% 0.226 317.5)
XYZxyz(28.7697, 15.6874, 58.0009)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38CB #59CB38
analogous
#6038CB #AA38CB #CB38A2
triadic
#AA38CB #CBAA38 #38CBAA
tetradic
#AA38CB #CB6038 #59CB38 #38A2CB
square
#AA38CB #CB6038 #59CB38 #38A2CB
split-complementary
#AA38CB #A2CB38 #38CB60
monochromatic
#5A1C6C #83299D #AA38CB #BF69D8 #D399E4

Accessibility & contrast

On white

5.08
#AA38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AA38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38CB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38CB#FFFFFF#000000##FFFFFF
##AA38CB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#3C72C8
Tritanopia (blue-blind)
#A9567F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa38cb;
/* rgb */ color: rgb(170, 56, 203);
/* oklch */ color: oklch(56.8% 0.226 317.5);
Tailwind
colors: {
  custom: {
    50: '#c779dc',
    500: '#aa38cb',
    950: '#000000',
  },
}
SCSS
$custom: #aa38cb;
$custom-light: #c779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38cb",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 286.531,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56848,
    "c": 0.22572,
    "h": 317.5
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#AA38CB
secondary
#9DD08F
accent
#E24669
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AA38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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