#A228B1#A228B1

#A228B1 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.7% C 0.217 H 323.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#A228B1
RGBrgb(162, 40, 177)
HSLhsl(293, 63%, 43%)
HSVhsv(293, 77%, 69%)
CMYKcmyk(8.5%, 77.4%, 0%, 30.6%)
CIE-LABlab(41.81, 65.08, -46.76)
CIE-LCHlch(41.81, 80.14, 324.30°)
OKLaboklab(52.7% 0.1737 -0.1307)
OKLCHoklch(52.7% 0.217 323)
XYZxyz(23.5941, 12.3747, 42.7323)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228B1 #37B128
analogous
#5E28B1 #A228B1 #B1287B
triadic
#A228B1 #B1A228 #28B1A2
tetradic
#A228B1 #B15E28 #37B128 #287BB1
square
#A228B1 #B15E28 #37B128 #287BB1
split-complementary
#A228B1 #7BB128 #28B15E
monochromatic
#47114D #741D7F #A228B1 #C442D4 #D474E0

Accessibility & contrast

On white

6.04
#A228B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A228B1
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228B1#FFFFFF#000000##FFFFFF
##A228B11.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#4067AE
Tritanopia (blue-blind)
#A4436C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a228b1;
/* rgb */ color: rgb(162, 40, 177);
/* oklch */ color: oklch(52.7% 0.217 323.0);
Tailwind
colors: {
  custom: {
    50: '#c270c9',
    500: '#a228b1',
    950: '#000000',
  },
}
SCSS
$custom: #a228b1;
$custom-light: #c270c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a228b1",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 293.431,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52704,
    "c": 0.2174,
    "h": 323
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#A228B1
secondary
#78C76E
accent
#E64254
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A228B1

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

Preview Lab → · Contrast checker → · Palette generator →

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