#A227B0#A227B0

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

Color values

HEX#A227B0
RGBrgb(162, 39, 176)
HSLhsl(294, 64%, 42%)
HSVhsv(294, 78%, 69%)
CMYKcmyk(8%, 77.8%, 0%, 31%)
CIE-LABlab(41.64, 65.20, -46.44)
CIE-LCHlch(41.64, 80.05, 324.54°)
OKLaboklab(52.57% 0.1746 -0.1297)
OKLCHoklch(52.57% 0.218 323.4)
XYZxyz(23.4616, 12.2685, 42.1982)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227B0 #35B027
analogous
#5E27B0 #A227B0 #B02779
triadic
#A227B0 #B0A227 #27B0A2
tetradic
#A227B0 #B05E27 #35B027 #2779B0
square
#A227B0 #B05E27 #35B027 #2779B0
split-complementary
#A227B0 #79B027 #27B05E
monochromatic
#46114C #741C7E #A227B0 #C540D5 #D472E0

Accessibility & contrast

On white

6.08
#A227B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A227B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227B0
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227B0#FFFFFF#000000##FFFFFF
##A227B01.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#4067AD
Tritanopia (blue-blind)
#A5426B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a227b0;
/* rgb */ color: rgb(162, 39, 176);
/* oklch */ color: oklch(52.6% 0.218 323.4);
Tailwind
colors: {
  custom: {
    50: '#c270c8',
    500: '#a227b0',
    950: '#000000',
  },
}
SCSS
$custom: #a227b0;
$custom-light: #c270c8;
$custom-dark: #000000;
JSON
{
  "hex": "#a227b0",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 293.869,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.21755,
    "h": 323.4
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

primary
#A227B0
secondary
#75C76C
accent
#E74152
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A227B0

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

Preview Lab → · Contrast checker → · Palette generator →

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