#A227CA#A227CA

#A227CA is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.239 H 315.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#A227CA
RGBrgb(162, 39, 202)
HSLhsl(285, 68%, 47%)
HSVhsv(285, 81%, 79%)
CMYKcmyk(19.8%, 80.7%, 0%, 20.8%)
CIE-LABlab(43.36, 69.91, -58.91)
CIE-LCHlch(43.36, 91.42, 319.88°)
OKLaboklab(54.32% 0.171 -0.1663)
OKLCHoklch(54.32% 0.239 315.8)
XYZxyz(26.2848, 13.3977, 57.0671)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227CA #4FCA27
analogous
#5027CA #A227CA #CA27A1
triadic
#A227CA #CAA227 #27CAA2
tetradic
#A227CA #CA5027 #4FCA27 #27A1CA
square
#A227CA #CA5027 #4FCA27 #27A1CA
split-complementary
#A227CA #A1CA27 #27CA50
monochromatic
#501363 #791D97 #A227CA #BB51DD #CF84E7

Accessibility & contrast

On white

5.71
#A227CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#A227CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227CA
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227CA#FFFFFF#000000##FFFFFF
##A227CA1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#216AC7
Tritanopia (blue-blind)
#9F4F7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a227ca;
/* rgb */ color: rgb(162, 39, 202);
/* oklch */ color: oklch(54.3% 0.239 315.8);
Tailwind
colors: {
  custom: {
    50: '#c271db',
    500: '#a227ca',
    950: '#000000',
  },
}
SCSS
$custom: #a227ca;
$custom-light: #c271db;
$custom-dark: #000000;
JSON
{
  "hex": "#a227ca",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 285.276,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54321,
    "c": 0.23854,
    "h": 315.8
  },
  "luminance": 0.13397
}

Semantic roles & 50–950 ramp

primary
#A227CA
secondary
#91D07C
accent
#EB3D68
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A227CA

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

Preview Lab → · Contrast checker → · Palette generator →

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