#A838CC#A838CC

#A838CC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.226 H 316.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A838CC
RGBrgb(168, 56, 204)
HSLhsl(285, 59%, 51%)
HSVhsv(285, 73%, 80%)
CMYKcmyk(17.6%, 72.5%, 0%, 20%)
CIE-LABlab(46.33, 65.84, -55.23)
CIE-LCHlch(46.33, 85.94, 320.01°)
OKLaboklab(56.65% 0.1639 -0.1554)
OKLCHoklch(56.65% 0.226 316.5)
XYZxyz(28.4600, 15.5140, 58.6104)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838CC #5CCC38
analogous
#5E38CC #A838CC #CC38A6
triadic
#A838CC #CCA838 #38CCA8
tetradic
#A838CC #CC5E38 #5CCC38 #38A6CC
square
#A838CC #CC5E38 #5CCC38 #38A6CC
split-complementary
#A838CC #A6CC38 #38CC5E
monochromatic
#5A1C6E #82299E #A838CC #BD69D8 #D399E5

Accessibility & contrast

On white

5.12
#A838CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#A838CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838CC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838CC#FFFFFF#000000##FFFFFF
##A838CC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#A6577F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a838cc;
/* rgb */ color: rgb(168, 56, 204);
/* oklch */ color: oklch(56.6% 0.226 316.5);
Tailwind
colors: {
  custom: {
    50: '#c679dc',
    500: '#a838cc',
    950: '#000000',
  },
}
SCSS
$custom: #a838cc;
$custom-light: #c679dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a838cc",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 285.405,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56645,
    "c": 0.22585,
    "h": 316.5
  },
  "luminance": 0.15513
}

Semantic roles & 50–950 ramp

primary
#A838CC
secondary
#9FD18F
accent
#E2456C
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A838CC

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

Preview Lab → · Contrast checker → · Palette generator →

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