#A538D9#A538D9

#A538D9 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.1% C 0.236 H 312.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A538D9
RGBrgb(165, 56, 217)
HSLhsl(281, 68%, 54%)
HSVhsv(281, 74%, 85%)
CMYKcmyk(24%, 74.2%, 0%, 14.9%)
CIE-LABlab(46.76, 67.83, -62.02)
CIE-LCHlch(46.76, 91.91, 317.56°)
OKLaboklab(57.14% 0.1584 -0.1754)
OKLCHoklch(57.14% 0.236 312.1)
XYZxyz(29.4533, 15.8383, 67.1377)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A538D9 #6CD938
analogous
#5438D9 #A538D9 #D938BC
triadic
#A538D9 #D9A538 #38D9A5
tetradic
#A538D9 #D95438 #6CD938 #38BCD9
square
#A538D9 #D95438 #6CD938 #38BCD9
split-complementary
#A538D9 #BCD938 #38D954
monochromatic
#5D187E #8322B2 #A538D9 #BC6BE3 #D39FED

Accessibility & contrast

On white

5.04
#A538D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A538D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A538D9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A538D9#FFFFFF#000000##FFFFFF
##A538D91.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#1F71D6
Tritanopia (blue-blind)
#9F5D86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a538d9;
/* rgb */ color: rgb(165, 56, 217);
/* oklch */ color: oklch(57.1% 0.236 312.1);
Tailwind
colors: {
  custom: {
    50: '#c579e6',
    500: '#a538d9',
    950: '#000000',
  },
}
SCSS
$custom: #a538d9;
$custom-light: #c579e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a538d9",
  "rgb": {
    "r": 165,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 280.621,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57136,
    "c": 0.23638,
    "h": 312.1
  },
  "luminance": 0.15837
}

Semantic roles & 50–950 ramp

primary
#A538D9
secondary
#AAD994
accent
#EB3D75
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A538D9

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

Preview Lab → · Contrast checker → · Palette generator →

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