#A838C2#A838C2

#A838C2 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.217 H 319.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A838C2
RGBrgb(168, 56, 194)
HSLhsl(289, 55%, 49%)
HSVhsv(289, 71%, 76%)
CMYKcmyk(13.4%, 71.1%, 0%, 23.9%)
CIE-LABlab(45.70, 63.94, -50.44)
CIE-LCHlch(45.70, 81.44, 321.73°)
OKLaboklab(56% 0.1648 -0.1414)
OKLCHoklch(56% 0.217 319.4)
XYZxyz(27.2990, 15.0495, 52.4954)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838C2 #52C238
analogous
#6338C2 #A838C2 #C23897
triadic
#A838C2 #C2A838 #38C2A8
tetradic
#A838C2 #C26338 #52C238 #3897C2
square
#A838C2 #C26338 #52C238 #3897C2
split-complementary
#A838C2 #97C238 #38C263
monochromatic
#561D63 #7F2A93 #A838C2 #BE65D2 #D294E0

Accessibility & contrast

On white

5.24
#A838C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#A838C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838C2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838C2#FFFFFF#000000##FFFFFF
##A838C21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#4270BF
Tritanopia (blue-blind)
#A8537A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a838c2;
/* rgb */ color: rgb(168, 56, 194);
/* oklch */ color: oklch(56.0% 0.217 319.4);
Tailwind
colors: {
  custom: {
    50: '#c679d5',
    500: '#a838c2',
    950: '#000000',
  },
}
SCSS
$custom: #a838c2;
$custom-light: #c679d5;
$custom-dark: #000000;
JSON
{
  "hex": "#a838c2",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 288.696,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55996,
    "c": 0.21712,
    "h": 319.4
  },
  "luminance": 0.15048
}

Semantic roles & 50–950 ramp

primary
#A838C2
secondary
#97CB8A
accent
#DF4965
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A838C2

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

Preview Lab → · Contrast checker → · Palette generator →

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