#A227B1#A227B1

#A227B1 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.218 H 323.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A227B1
RGBrgb(162, 39, 177)
HSLhsl(293, 64%, 42%)
HSVhsv(293, 78%, 69%)
CMYKcmyk(8.5%, 78%, 0%, 30.6%)
CIE-LABlab(41.70, 65.38, -46.93)
CIE-LCHlch(41.70, 80.48, 324.33°)
OKLaboklab(52.63% 0.1745 -0.1312)
OKLCHoklch(52.63% 0.218 323.1)
XYZxyz(23.5609, 12.3082, 42.7212)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227B1 #36B127
analogous
#5D27B1 #A227B1 #B1277B
triadic
#A227B1 #B1A227 #27B1A2
tetradic
#A227B1 #B15D27 #36B127 #277BB1
square
#A227B1 #B15D27 #36B127 #277BB1
split-complementary
#A227B1 #7BB127 #27B15D
monochromatic
#46114D #741C7F #A227B1 #C540D5 #D472E0

Accessibility & contrast

On white

6.07
#A227B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A227B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227B1
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227B1#FFFFFF#000000##FFFFFF
##A227B11.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#3F67AE
Tritanopia (blue-blind)
#A4436C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a227b1;
/* rgb */ color: rgb(162, 39, 177);
/* oklch */ color: oklch(52.6% 0.218 323.1);
Tailwind
colors: {
  custom: {
    50: '#c270c9',
    500: '#a227b1',
    950: '#000000',
  },
}
SCSS
$custom: #a227b1;
$custom-light: #c270c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a227b1",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 293.478,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5263,
    "c": 0.21834,
    "h": 323.1
  },
  "luminance": 0.12307
}

Semantic roles & 50–950 ramp

primary
#A227B1
secondary
#77C76D
accent
#E74153
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A227B1

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

Preview Lab → · Contrast checker → · Palette generator →

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