#A838DC#A838DC

#A838DC is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.7% C 0.240 H 312.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A838DC
RGBrgb(168, 56, 220)
HSLhsl(281, 70%, 54%)
HSVhsv(281, 75%, 86%)
CMYKcmyk(23.6%, 74.5%, 0%, 13.7%)
CIE-LABlab(47.39, 68.99, -62.69)
CIE-LCHlch(47.39, 93.21, 317.74°)
OKLaboklab(57.74% 0.1617 -0.1773)
OKLCHoklch(57.74% 0.24 312.4)
XYZxyz(30.4785, 16.3214, 69.2411)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838DC #6CDC38
analogous
#5638DC #A838DC #DC38BE
triadic
#A838DC #DCA838 #38DCA8
tetradic
#A838DC #DC5638 #6CDC38 #38BEDC
square
#A838DC #DC5638 #6CDC38 #38BEDC
split-complementary
#A838DC #BEDC38 #38DC56
monochromatic
#601783 #8720B7 #A838DC #BF6CE5 #D6A0EE

Accessibility & contrast

On white

4.92
#A838DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#A838DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838DC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838DC#FFFFFF#000000##FFFFFF
##A838DC1.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE1
Deuteranopia (green-blind)
#2073D9
Tritanopia (blue-blind)
#A25E88
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a838dc;
/* rgb */ color: rgb(168, 56, 220);
/* oklch */ color: oklch(57.7% 0.240 312.4);
Tailwind
colors: {
  custom: {
    50: '#c77ae8',
    500: '#a838dc',
    950: '#000000',
  },
}
SCSS
$custom: #a838dc;
$custom-light: #c77ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#a838dc",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 220
  },
  "hsl": {
    "h": 280.976,
    "s": 70.085,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57735,
    "c": 0.23999,
    "h": 312.4
  },
  "luminance": 0.1632
}

Semantic roles & 50–950 ramp

primary
#A838DC
secondary
#ABDB95
accent
#ED3B73
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A838DC

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

Preview Lab → · Contrast checker → · Palette generator →

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