#A538CB#A538CB

#A538CB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.224 H 315.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A538CB
RGBrgb(165, 56, 203)
HSLhsl(284, 59%, 51%)
HSVhsv(284, 72%, 80%)
CMYKcmyk(18.7%, 72.4%, 0%, 20.4%)
CIE-LABlab(45.83, 65.04, -55.48)
CIE-LCHlch(45.83, 85.49, 319.54°)
OKLaboklab(56.18% 0.1603 -0.1563)
OKLCHoklch(56.18% 0.224 315.7)
XYZxyz(27.7090, 15.1405, 57.9512)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A538CB #5ECB38
analogous
#5B38CB #A538CB #CB38A7
triadic
#A538CB #CBA538 #38CBA5
tetradic
#A538CB #CB5B38 #5ECB38 #38A7CB
square
#A538CB #CB5B38 #5ECB38 #38A7CB
split-complementary
#A538CB #A7CB38 #38CB5B
monochromatic
#581C6C #7F299D #A538CB #BB69D8 #D199E4

Accessibility & contrast

On white

5.21
#A538CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A538CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A538CB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A538CB#FFFFFF#000000##FFFFFF
##A538CB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#356FC8
Tritanopia (blue-blind)
#A2577F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a538cb;
/* rgb */ color: rgb(165, 56, 203);
/* oklch */ color: oklch(56.2% 0.224 315.7);
Tailwind
colors: {
  custom: {
    50: '#c479dc',
    500: '#a538cb',
    950: '#000000',
  },
}
SCSS
$custom: #a538cb;
$custom-light: #c479dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a538cb",
  "rgb": {
    "r": 165,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 284.49,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56177,
    "c": 0.22388,
    "h": 315.7
  },
  "luminance": 0.15139
}

Semantic roles & 50–950 ramp

primary
#A538CB
secondary
#A0D08F
accent
#E2466E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A538CB

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

Preview Lab → · Contrast checker → · Palette generator →

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