#A223A8#A223A8

#A223A8 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.215 H 326.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A223A8
RGBrgb(162, 35, 168)
HSLhsl(297, 66%, 40%)
HSVhsv(297, 79%, 66%)
CMYKcmyk(3.6%, 79.2%, 0%, 34.1%)
CIE-LABlab(40.76, 64.98, -43.09)
CIE-LCHlch(40.76, 77.97, 326.45°)
OKLaboklab(51.78% 0.1784 -0.12)
OKLCHoklch(51.78% 0.215 326.1)
XYZxyz(22.5688, 11.7122, 38.1102)
Luminance0.1171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A223A8 #29A823
analogous
#5F23A8 #A223A8 #A8236C
triadic
#A223A8 #A8A223 #23A8A2
tetradic
#A223A8 #A85F23 #29A823 #236CA8
square
#A223A8 #A85F23 #29A823 #236CA8
split-complementary
#A223A8 #6CA823 #23A85F
monochromatic
#400E43 #711875 #A223A8 #CD34D5 #DA66DF

Accessibility & contrast

On white

6.28
#A223A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A223A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A223A8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A223A8#FFFFFF#000000##FFFFFF
##A223A81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#A63C66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a223a8;
/* rgb */ color: rgb(162, 35, 168);
/* oklch */ color: oklch(51.8% 0.215 326.1);
Tailwind
colors: {
  custom: {
    50: '#c26ec2',
    500: '#a223a8',
    950: '#000000',
  },
}
SCSS
$custom: #a223a8;
$custom-light: #c26ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a223a8",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 297.293,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.21495,
    "h": 326.1
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#A223A8
secondary
#67C562
accent
#E83F47
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A223A8

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

Preview Lab → · Contrast checker → · Palette generator →

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