#A838BA#A838BA

#A838BA is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.5% C 0.210 H 321.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#A838BA
RGBrgb(168, 56, 186)
HSLhsl(292, 54%, 47%)
HSVhsv(292, 70%, 73%)
CMYKcmyk(9.7%, 69.9%, 0%, 27.1%)
CIE-LABlab(45.22, 62.45, -46.55)
CIE-LCHlch(45.22, 77.89, 323.30°)
OKLaboklab(55.5% 0.1652 -0.13)
OKLCHoklch(55.5% 0.21 321.8)
XYZxyz(26.4246, 14.6998, 47.8903)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A838BA #4ABA38
analogous
#6738BA #A838BA #BA388B
triadic
#A838BA #BAA838 #38BAA8
tetradic
#A838BA #BA6738 #4ABA38 #388BBA
square
#A838BA #BA6738 #4ABA38 #388BBA
split-complementary
#A838BA #8BBA38 #38BA67
monochromatic
#531C5C #7E2A8B #A838BA #C060CF #D28FDD

Accessibility & contrast

On white

5.33
#A838BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#A838BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A838BA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A838BA#FFFFFF#000000##FFFFFF
##A838BA1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BE
Deuteranopia (green-blind)
#496FB7
Tritanopia (blue-blind)
#AA4F75
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a838ba;
/* rgb */ color: rgb(168, 56, 186);
/* oklch */ color: oklch(55.5% 0.210 321.8);
Tailwind
colors: {
  custom: {
    50: '#c578cf',
    500: '#a838ba',
    950: '#000000',
  },
}
SCSS
$custom: #a838ba;
$custom-light: #c578cf;
$custom-dark: #000000;
JSON
{
  "hex": "#a838ba",
  "rgb": {
    "r": 168,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 291.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55498,
    "c": 0.21021,
    "h": 321.8
  },
  "luminance": 0.14698
}

Semantic roles & 50–950 ramp

primary
#A838BA
secondary
#8FC886
accent
#DD4B5F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A838BA

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

Preview Lab → · Contrast checker → · Palette generator →

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