#A838CA#A838CA

#A838CA is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.224 H 317.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#A838CA
RGBrgb(168, 56, 202)
HSLhsl(286, 58%, 51%)
HSVhsv(286, 72%, 79%)
CMYKcmyk(16.8%, 72.3%, 0%, 20.8%)
CIE-LABlab(46.20, 65.46, -54.28)
CIE-LCHlch(46.20, 85.03, 320.33°)
OKLaboklab(56.51% 0.1641 -0.1526)
OKLCHoklch(56.51% 0.224 317.1)
XYZxyz(28.2217, 15.4186, 57.3552)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838CA #5ACA38
analogous
#5F38CA #A838CA #CA38A3
triadic
#A838CA #CAA838 #38CAA8
tetradic
#A838CA #CA5F38 #5ACA38 #38A3CA
square
#A838CA #CA5F38 #5ACA38 #38A3CA
split-complementary
#A838CA #A3CA38 #38CA5F
monochromatic
#591D6B #81299B #A838CA #BD68D7 #D299E4

Accessibility & contrast

On white

5.14
#A838CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#A838CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838CA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838CA#FFFFFF#000000##FFFFFF
##A838CA1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#3B71C7
Tritanopia (blue-blind)
#A6567E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a838ca;
/* rgb */ color: rgb(168, 56, 202);
/* oklch */ color: oklch(56.5% 0.224 317.1);
Tailwind
colors: {
  custom: {
    50: '#c679db',
    500: '#a838ca',
    950: '#000000',
  },
}
SCSS
$custom: #a838ca;
$custom-light: #c679db;
$custom-dark: #000000;
JSON
{
  "hex": "#a838ca",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 286.027,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56513,
    "c": 0.2241,
    "h": 317.1
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#A838CA
secondary
#9ECF8E
accent
#E1476B
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A838CA

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

Preview Lab → · Contrast checker → · Palette generator →

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