#A838D9#A838D9

#A838D9 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.237 H 313.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#A838D9
RGBrgb(168, 56, 217)
HSLhsl(282, 68%, 54%)
HSVhsv(282, 74%, 85%)
CMYKcmyk(22.6%, 74.2%, 0%, 14.9%)
CIE-LABlab(47.19, 68.39, -61.31)
CIE-LCHlch(47.19, 91.84, 318.12°)
OKLaboklab(57.53% 0.1622 -0.1733)
OKLCHoklch(57.53% 0.237 313.1)
XYZxyz(30.0848, 16.1639, 67.1673)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838D9 #69D938
analogous
#5738D9 #A838D9 #D938B9
triadic
#A838D9 #D9A838 #38D9A8
tetradic
#A838D9 #D95738 #69D938 #38B9D9
square
#A838D9 #D95738 #69D938 #38B9D9
split-complementary
#A838D9 #B9D938 #38D957
monochromatic
#5F187E #8622B2 #A838D9 #BE6BE3 #D59FED

Accessibility & contrast

On white

4.96
#A838D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#A838D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838D9
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838D9#FFFFFF#000000##FFFFFF
##A838D91.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#2672D6
Tritanopia (blue-blind)
#A35D86
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a838d9;
/* rgb */ color: rgb(168, 56, 217);
/* oklch */ color: oklch(57.5% 0.237 313.1);
Tailwind
colors: {
  custom: {
    50: '#c77ae6',
    500: '#a838d9',
    950: '#000000',
  },
}
SCSS
$custom: #a838d9;
$custom-light: #c77ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#a838d9",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 281.739,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57526,
    "c": 0.23733,
    "h": 313.1
  },
  "luminance": 0.16163
}

Semantic roles & 50–950 ramp

primary
#A838D9
secondary
#A9D994
accent
#EB3D72
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A838D9

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

Preview Lab → · Contrast checker → · Palette generator →

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