#A838D2#A838D2

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

Color values

HEX#A838D2
RGBrgb(168, 56, 210)
HSLhsl(284, 63%, 52%)
HSVhsv(284, 73%, 82%)
CMYKcmyk(20%, 73.3%, 0%, 17.6%)
CIE-LABlab(46.72, 67.01, -58.05)
CIE-LCHlch(46.72, 88.66, 319.10°)
OKLaboklab(57.05% 0.1632 -0.1637)
OKLCHoklch(57.05% 0.231 314.9)
XYZxyz(29.1936, 15.8074, 62.4736)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838D2 #62D238
analogous
#5B38D2 #A838D2 #D238AF
triadic
#A838D2 #D2A838 #38D2A8
tetradic
#A838D2 #D25B38 #62D238 #38AFD2
square
#A838D2 #D25B38 #62D238 #38AFD2
split-complementary
#A838D2 #AFD238 #38D25B
monochromatic
#5C1A75 #8426A7 #A838D2 #BE6ADD #D49CE9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A838D2#FFFFFF#000000##FFFFFF
##A838D21.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)
#0069D6
Deuteranopia (green-blind)
#3172CF
Tritanopia (blue-blind)
#A45A82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a838d2;
/* rgb */ color: rgb(168, 56, 210);
/* oklch */ color: oklch(57.0% 0.231 314.9);
Tailwind
colors: {
  custom: {
    50: '#c679e1',
    500: '#a838d2',
    950: '#000000',
  },
}
SCSS
$custom: #a838d2;
$custom-light: #c679e1;
$custom-dark: #000000;
JSON
{
  "hex": "#a838d2",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 283.636,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57046,
    "c": 0.23113,
    "h": 314.9
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#A838D2
secondary
#A4D591
accent
#E6426F
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #A838D2

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

Preview Lab → · Contrast checker → · Palette generator →

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