#A23EC2#A23EC2

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

Color values

HEX#A23EC2
RGBrgb(162, 62, 194)
HSLhsl(285, 52%, 50%)
HSVhsv(285, 68%, 76%)
CMYKcmyk(16.5%, 68%, 0%, 23.9%)
CIE-LABlab(45.67, 60.26, -50.55)
CIE-LCHlch(45.67, 78.66, 320.01°)
OKLaboklab(55.79% 0.1513 -0.1419)
OKLCHoklch(55.79% 0.207 316.8)
XYZxyz(26.3591, 15.0227, 52.5397)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A23EC2 #5EC23E
analogous
#603EC2 #A23EC2 #C23EA0
triadic
#A23EC2 #C2A23E #3EC2A2
tetradic
#A23EC2 #C2603E #5EC23E #3EA0C2
square
#A23EC2 #C2603E #5EC23E #3EA0C2
split-complementary
#A23EC2 #A0C23E #3EC260
monochromatic
#552066 #7B2F94 #A23EC2 #B86DD1 #CF9BDF

Accessibility & contrast

On white

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

On black

4.00
#A23EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##A23EC2#FFFFFF#000000##FFFFFF
##A23EC21.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#406FBF
Tritanopia (blue-blind)
#A0577B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a23ec2;
/* rgb */ color: rgb(162, 62, 194);
/* oklch */ color: oklch(55.8% 0.207 316.8);
Tailwind
colors: {
  custom: {
    50: '#c17bd5',
    500: '#a23ec2',
    950: '#000000',
  },
}
SCSS
$custom: #a23ec2;
$custom-light: #c17bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a23ec2",
  "rgb": {
    "r": 162,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 285.455,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55792,
    "c": 0.20746,
    "h": 316.8
  },
  "luminance": 0.15022
}

Semantic roles & 50–950 ramp

primary
#A23EC2
secondary
#9FCB90
accent
#DB4C6F
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A23EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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