#A838C4#A838C4

#A838C4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.219 H 318.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A838C4
RGBrgb(168, 56, 196)
HSLhsl(288, 56%, 49%)
HSVhsv(288, 71%, 77%)
CMYKcmyk(14.3%, 71.4%, 0%, 23.1%)
CIE-LABlab(45.83, 64.31, -51.41)
CIE-LCHlch(45.83, 82.33, 321.36°)
OKLaboklab(56.12% 0.1646 -0.1442)
OKLCHoklch(56.12% 0.219 318.8)
XYZxyz(27.5251, 15.1400, 53.6863)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838C4 #54C438
analogous
#6238C4 #A838C4 #C4389A
triadic
#A838C4 #C4A838 #38C4A8
tetradic
#A838C4 #C46238 #54C438 #389AC4
square
#A838C4 #C46238 #54C438 #389AC4
split-complementary
#A838C4 #9AC438 #38C462
monochromatic
#561D65 #7F2A94 #A838C4 #BD66D3 #D296E1

Accessibility & contrast

On white

5.21
#A838C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A838C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838C4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838C4#FFFFFF#000000##FFFFFF
##A838C41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#4070C1
Tritanopia (blue-blind)
#A8547B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a838c4;
/* rgb */ color: rgb(168, 56, 196);
/* oklch */ color: oklch(56.1% 0.219 318.8);
Tailwind
colors: {
  custom: {
    50: '#c679d6',
    500: '#a838c4',
    950: '#000000',
  },
}
SCSS
$custom: #a838c4;
$custom-light: #c679d6;
$custom-dark: #000000;
JSON
{
  "hex": "#a838c4",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 288,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56124,
    "c": 0.21886,
    "h": 318.8
  },
  "luminance": 0.15139
}

Semantic roles & 50–950 ramp

primary
#A838C4
secondary
#99CC8C
accent
#DF4967
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A838C4

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

Preview Lab → · Contrast checker → · Palette generator →

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