#A138C5#A138C5

#A138C5 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.217 H 316.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#A138C5
RGBrgb(161, 56, 197)
HSLhsl(285, 56%, 50%)
HSVhsv(285, 72%, 77%)
CMYKcmyk(18.3%, 71.6%, 0%, 22.7%)
CIE-LABlab(44.85, 63.06, -53.60)
CIE-LCHlch(44.85, 82.76, 319.63°)
OKLaboklab(55.24% 0.1561 -0.1509)
OKLCHoklch(55.24% 0.217 316)
XYZxyz(26.1886, 14.4376, 54.2197)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A138C5 #5CC538
analogous
#5B38C5 #A138C5 #C538A3
triadic
#A138C5 #C5A138 #38C5A1
tetradic
#A138C5 #C55B38 #5CC538 #38A3C5
square
#A138C5 #C55B38 #5CC538 #38A3C5
split-complementary
#A138C5 #A3C538 #38C55B
monochromatic
#531D66 #7A2A95 #A138C5 #B867D4 #CE96E1

Accessibility & contrast

On white

5.40
#A138C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#A138C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A138C5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A138C5#FFFFFF#000000##FFFFFF
##A138C51.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#376DC2
Tritanopia (blue-blind)
#9F557B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a138c5;
/* rgb */ color: rgb(161, 56, 197);
/* oklch */ color: oklch(55.2% 0.217 316.0);
Tailwind
colors: {
  custom: {
    50: '#c178d7',
    500: '#a138c5',
    950: '#000000',
  },
}
SCSS
$custom: #a138c5;
$custom-light: #c178d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a138c5",
  "rgb": {
    "r": 161,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 284.681,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55243,
    "c": 0.21706,
    "h": 316
  },
  "luminance": 0.14437
}

Semantic roles & 50–950 ramp

primary
#A138C5
secondary
#9DCD8C
accent
#DF496F
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A138C5

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

Preview Lab → · Contrast checker → · Palette generator →

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