#A23CE2#A23CE2

#A23CE2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.8% C 0.240 H 308.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A23CE2
RGBrgb(162, 60, 226)
HSLhsl(277, 74%, 56%)
HSVhsv(277, 73%, 89%)
CMYKcmyk(28.3%, 73.5%, 0%, 11.4%)
CIE-LABlab(47.50, 67.63, -65.97)
CIE-LCHlch(47.50, 94.48, 315.71°)
OKLaboklab(57.77% 0.1495 -0.1872)
OKLCHoklch(57.77% 0.24 308.6)
XYZxyz(30.2408, 16.4046, 73.5101)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A23CE2 #7CE23C
analogous
#4F3CE2 #A23CE2 #E23CCF
triadic
#A23CE2 #E2A23C #3CE2A2
tetradic
#A23CE2 #E24F3C #7CE23C #3CCFE2
square
#A23CE2 #E24F3C #7CE23C #3CCFE2
split-complementary
#A23CE2 #CFE23C #3CE24F
monochromatic
#60158E #831DC4 #A23CE2 #BB71EA #D5A7F2

Accessibility & contrast

On white

4.91
#A23CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A23CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A23CE2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A23CE2#FFFFFF#000000##FFFFFF
##A23CE21.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#98638C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a23ce2;
/* rgb */ color: rgb(162, 60, 226);
/* oklch */ color: oklch(57.8% 0.240 308.6);
Tailwind
colors: {
  custom: {
    50: '#c37bec',
    500: '#a23ce2',
    950: '#000000',
  },
}
SCSS
$custom: #a23ce2;
$custom-light: #c37bec;
$custom-dark: #000000;
JSON
{
  "hex": "#a23ce2",
  "rgb": {
    "r": 162,
    "g": 60,
    "b": 226
  },
  "hsl": {
    "h": 276.867,
    "s": 74.107,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5777,
    "c": 0.23954,
    "h": 308.6
  },
  "luminance": 0.16404
}

Semantic roles & 50–950 ramp

primary
#A23CE2
secondary
#B5DF9B
accent
#F1377F
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A23CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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