#A228B0#A228B0

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

Color values

HEX#A228B0
RGBrgb(162, 40, 176)
HSLhsl(294, 63%, 42%)
HSVhsv(294, 77%, 69%)
CMYKcmyk(8%, 77.3%, 0%, 31%)
CIE-LABlab(41.74, 64.90, -46.27)
CIE-LCHlch(41.74, 79.71, 324.51°)
OKLaboklab(52.64% 0.1738 -0.1293)
OKLCHoklch(52.64% 0.217 323.4)
XYZxyz(23.4948, 12.3350, 42.2093)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228B0 #36B028
analogous
#5E28B0 #A228B0 #B0287A
triadic
#A228B0 #B0A228 #28B0A2
tetradic
#A228B0 #B05E28 #36B028 #287AB0
square
#A228B0 #B05E28 #36B028 #287AB0
split-complementary
#A228B0 #7AB028 #28B05E
monochromatic
#46114C #741D7E #A228B0 #C541D4 #D473DF

Accessibility & contrast

On white

6.06
#A228B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A228B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228B0
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228B0#FFFFFF#000000##FFFFFF
##A228B01.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#4067AD
Tritanopia (blue-blind)
#A5436B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a228b0;
/* rgb */ color: rgb(162, 40, 176);
/* oklch */ color: oklch(52.6% 0.217 323.4);
Tailwind
colors: {
  custom: {
    50: '#c270c8',
    500: '#a228b0',
    950: '#000000',
  },
}
SCSS
$custom: #a228b0;
$custom-light: #c270c8;
$custom-dark: #000000;
JSON
{
  "hex": "#a228b0",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 293.824,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5264,
    "c": 0.2166,
    "h": 323.4
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#A228B0
secondary
#77C66D
accent
#E64253
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A228B0

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

Preview Lab → · Contrast checker → · Palette generator →

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