#A638D9#A638D9

#A638D9 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.3% C 0.237 H 312.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#A638D9
RGBrgb(166, 56, 217)
HSLhsl(281, 68%, 54%)
HSVhsv(281, 74%, 85%)
CMYKcmyk(23.5%, 74.2%, 0%, 14.9%)
CIE-LABlab(46.90, 68.01, -61.78)
CIE-LCHlch(46.90, 91.89, 317.75°)
OKLaboklab(57.27% 0.1597 -0.1747)
OKLCHoklch(57.27% 0.237 312.4)
XYZxyz(29.6622, 15.9459, 67.1475)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A638D9 #6BD938
analogous
#5538D9 #A638D9 #D938BB
triadic
#A638D9 #D9A638 #38D9A6
tetradic
#A638D9 #D95538 #6BD938 #38BBD9
square
#A638D9 #D95538 #6BD938 #38BBD9
split-complementary
#A638D9 #BBD938 #38D955
monochromatic
#5E187E #8422B2 #A638D9 #BD6BE3 #D49FED

Accessibility & contrast

On white

5.01
#A638D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#A638D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A638D9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A638D9#FFFFFF#000000##FFFFFF
##A638D91.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#2271D6
Tritanopia (blue-blind)
#A05D86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a638d9;
/* rgb */ color: rgb(166, 56, 217);
/* oklch */ color: oklch(57.3% 0.237 312.4);
Tailwind
colors: {
  custom: {
    50: '#c579e6',
    500: '#a638d9',
    950: '#000000',
  },
}
SCSS
$custom: #a638d9;
$custom-light: #c579e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a638d9",
  "rgb": {
    "r": 166,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 280.994,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57266,
    "c": 0.2367,
    "h": 312.4
  },
  "luminance": 0.15945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A638D9

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

Preview Lab → · Contrast checker → · Palette generator →

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