#A838C5#A838C5

#A838C5 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.220 H 318.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#A838C5
RGBrgb(168, 56, 197)
HSLhsl(288, 56%, 50%)
HSVhsv(288, 72%, 77%)
CMYKcmyk(14.7%, 71.6%, 0%, 22.7%)
CIE-LABlab(45.89, 64.50, -51.89)
CIE-LCHlch(45.89, 82.78, 321.19°)
OKLaboklab(56.19% 0.1645 -0.1456)
OKLCHoklch(56.19% 0.22 318.5)
XYZxyz(27.6393, 15.1857, 54.2877)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838C5 #55C538
analogous
#6238C5 #A838C5 #C5389B
triadic
#A838C5 #C5A838 #38C5A8
tetradic
#A838C5 #C56238 #55C538 #389BC5
square
#A838C5 #C56238 #55C538 #389BC5
split-complementary
#A838C5 #9BC538 #38C562
monochromatic
#571D66 #7F2A95 #A838C5 #BD67D4 #D296E1

Accessibility & contrast

On white

5.20
#A838C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A838C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838C5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838C5#FFFFFF#000000##FFFFFF
##A838C51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#4070C2
Tritanopia (blue-blind)
#A7547B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a838c5;
/* rgb */ color: rgb(168, 56, 197);
/* oklch */ color: oklch(56.2% 0.220 318.5);
Tailwind
colors: {
  custom: {
    50: '#c679d7',
    500: '#a838c5',
    950: '#000000',
  },
}
SCSS
$custom: #a838c5;
$custom-light: #c679d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a838c5",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 287.66,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56188,
    "c": 0.21972,
    "h": 318.5
  },
  "luminance": 0.15184
}

Semantic roles & 50–950 ramp

primary
#A838C5
secondary
#99CD8C
accent
#DF4968
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A838C5

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

Preview Lab → · Contrast checker → · Palette generator →

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