#A226C7#A226C7

#A226C7 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.237 H 316.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#A226C7
RGBrgb(162, 38, 199)
HSLhsl(286, 68%, 46%)
HSVhsv(286, 81%, 78%)
CMYKcmyk(18.6%, 80.9%, 0%, 22%)
CIE-LABlab(43.05, 69.63, -57.66)
CIE-LCHlch(43.05, 90.41, 320.37°)
OKLaboklab(54.04% 0.1723 -0.1626)
OKLCHoklch(54.04% 0.237 316.6)
XYZxyz(25.9006, 13.1922, 55.2038)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A226C7 #4BC726
analogous
#5226C7 #A226C7 #C7269C
triadic
#A226C7 #C7A226 #26C7A2
tetradic
#A226C7 #C75226 #4BC726 #269CC7
square
#A226C7 #C75226 #4BC726 #269CC7
split-complementary
#A226C7 #9CC726 #26C752
monochromatic
#4E1260 #781C94 #A226C7 #BC4DDD #CF81E7

Accessibility & contrast

On white

5.77
#A226C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#A226C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A226C7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A226C7#FFFFFF#000000##FFFFFF
##A226C71.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#A04D78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a226c7;
/* rgb */ color: rgb(162, 38, 199);
/* oklch */ color: oklch(54.0% 0.237 316.6);
Tailwind
colors: {
  custom: {
    50: '#c271d9',
    500: '#a226c7',
    950: '#000000',
  },
}
SCSS
$custom: #a226c7;
$custom-light: #c271d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a226c7",
  "rgb": {
    "r": 162,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 286.211,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54042,
    "c": 0.23692,
    "h": 316.6
  },
  "luminance": 0.13191
}

Semantic roles & 50–950 ramp

primary
#A226C7
secondary
#8DCF79
accent
#EB3D65
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A226C7

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

Preview Lab → · Contrast checker → · Palette generator →

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