#A23EC5#A23EC5

#A23EC5 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.210 H 316.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A23EC5
RGBrgb(162, 62, 197)
HSLhsl(284, 54%, 51%)
HSVhsv(284, 69%, 77%)
CMYKcmyk(17.8%, 68.5%, 0%, 22.7%)
CIE-LABlab(45.85, 60.86, -51.99)
CIE-LCHlch(45.85, 80.05, 319.49°)
OKLaboklab(55.98% 0.1511 -0.1462)
OKLCHoklch(55.98% 0.21 316)
XYZxyz(26.6994, 15.1589, 54.3320)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A23EC5 #61C53E
analogous
#5E3EC5 #A23EC5 #C53EA5
triadic
#A23EC5 #C5A23E #3EC5A2
tetradic
#A23EC5 #C55E3E #61C53E #3EA5C5
square
#A23EC5 #C55E3E #61C53E #3EA5C5
split-complementary
#A23EC5 #A5C53E #3EC55E
monochromatic
#562069 #7D2E98 #A23EC5 #B96DD3 #CF9CE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A23EC5#FFFFFF#000000##FFFFFF
##A23EC51.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)
#0067C9
Deuteranopia (green-blind)
#3D6FC2
Tritanopia (blue-blind)
#A0597D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a23ec5;
/* rgb */ color: rgb(162, 62, 197);
/* oklch */ color: oklch(56.0% 0.210 316.0);
Tailwind
colors: {
  custom: {
    50: '#c17bd7',
    500: '#a23ec5',
    950: '#000000',
  },
}
SCSS
$custom: #a23ec5;
$custom-light: #c17bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#a23ec5",
  "rgb": {
    "r": 162,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 284.444,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55984,
    "c": 0.21024,
    "h": 316
  },
  "luminance": 0.15158
}

Semantic roles & 50–950 ramp

primary
#A23EC5
secondary
#A1CD91
accent
#DD4B71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A23EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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