#A838D8#A838D8

#A838D8 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.5% C 0.236 H 313.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#A838D8
RGBrgb(168, 56, 216)
HSLhsl(282, 67%, 53%)
HSVhsv(282, 74%, 85%)
CMYKcmyk(22.2%, 74.1%, 0%, 15.3%)
CIE-LABlab(47.12, 68.19, -60.84)
CIE-LCHlch(47.12, 91.39, 318.26°)
OKLaboklab(57.46% 0.1623 -0.1719)
OKLCHoklch(57.46% 0.236 313.4)
XYZxyz(29.9551, 16.1120, 66.4844)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838D8 #68D838
analogous
#5838D8 #A838D8 #D838B8
triadic
#A838D8 #D8A838 #38D8A8
tetradic
#A838D8 #D85838 #68D838 #38B8D8
square
#A838D8 #D85838 #68D838 #38B8D8
split-complementary
#A838D8 #B8D838 #38D858
monochromatic
#5F197D #8623B0 #A838D8 #BE6BE2 #D59EEC

Accessibility & contrast

On white

4.97
#A838D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#A838D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838D8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838D8#FFFFFF#000000##FFFFFF
##A838D81.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#2872D5
Tritanopia (blue-blind)
#A35C86
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a838d8;
/* rgb */ color: rgb(168, 56, 216);
/* oklch */ color: oklch(57.5% 0.236 313.4);
Tailwind
colors: {
  custom: {
    50: '#c77ae5',
    500: '#a838d8',
    950: '#000000',
  },
}
SCSS
$custom: #a838d8;
$custom-light: #c77ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#a838d8",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 216
  },
  "hsl": {
    "h": 282,
    "s": 67.227,
    "l": 53.333
  },
  "oklch": {
    "l": 0.57456,
    "c": 0.23644,
    "h": 313.4
  },
  "luminance": 0.16111
}

Semantic roles & 50–950 ramp

primary
#A838D8
secondary
#A8D893
accent
#EA3E71
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A838D8

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

Preview Lab → · Contrast checker → · Palette generator →

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