#A838CD#A838CD

#A838CD is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.227 H 316.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A838CD
RGBrgb(168, 56, 205)
HSLhsl(285, 60%, 51%)
HSVhsv(285, 73%, 80%)
CMYKcmyk(18%, 72.7%, 0%, 19.6%)
CIE-LABlab(46.39, 66.03, -55.70)
CIE-LCHlch(46.39, 86.39, 319.85°)
OKLaboklab(56.71% 0.1638 -0.1568)
OKLCHoklch(56.71% 0.227 316.2)
XYZxyz(28.5804, 15.5621, 59.2441)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838CD #5DCD38
analogous
#5D38CD #A838CD #CD38A7
triadic
#A838CD #CDA838 #38CDA8
tetradic
#A838CD #CD5D38 #5DCD38 #38A7CD
square
#A838CD #CD5D38 #5DCD38 #38A7CD
split-complementary
#A838CD #A7CD38 #38CD5D
monochromatic
#5A1C6F #8228A0 #A838CD #BD69D9 #D39AE6

Accessibility & contrast

On white

5.11
#A838CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#A838CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838CD
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838CD#FFFFFF#000000##FFFFFF
##A838CD1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#3771CA
Tritanopia (blue-blind)
#A65780
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a838cd;
/* rgb */ color: rgb(168, 56, 205);
/* oklch */ color: oklch(56.7% 0.227 316.2);
Tailwind
colors: {
  custom: {
    50: '#c679dd',
    500: '#a838cd',
    950: '#000000',
  },
}
SCSS
$custom: #a838cd;
$custom-light: #c679dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a838cd",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 285.101,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56711,
    "c": 0.22673,
    "h": 316.2
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#A838CD
secondary
#A0D18F
accent
#E3456C
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A838CD

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

Preview Lab → · Contrast checker → · Palette generator →

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