#A229EA#A229EA

#A229EA is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.8% C 0.264 H 307.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#A229EA
RGBrgb(162, 41, 234)
HSLhsl(278, 82%, 54%)
HSVhsv(278, 82%, 92%)
CMYKcmyk(30.8%, 82.5%, 0%, 8.2%)
CIE-LABlab(45.92, 75.58, -73.08)
CIE-LCHlch(45.92, 105.13, 315.97°)
OKLaboklab(56.85% 0.1621 -0.2079)
OKLCHoklch(56.85% 0.264 307.9)
XYZxyz(30.5414, 15.2082, 79.1525)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A229EA #71EA29
analogous
#4229EA #A229EA #EA29D1
triadic
#A229EA #EAA229 #29EAA2
tetradic
#A229EA #EA4229 #71EA29 #29D1EA
square
#A229EA #EA4229 #71EA29 #29D1EA
split-complementary
#A229EA #D1EA29 #29EA42
monochromatic
#5C0E8B #8113C3 #A229EA #BA61EF #D298F5

Accessibility & contrast

On white

5.20
#A229EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A229EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A229EA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A229EA#FFFFFF#000000##FFFFFF
##A229EA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#006EE6
Tritanopia (blue-blind)
#965F8D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a229ea;
/* rgb */ color: rgb(162, 41, 234);
/* oklch */ color: oklch(56.8% 0.264 307.9);
Tailwind
colors: {
  custom: {
    50: '#c474f2',
    500: '#a229ea',
    950: '#000000',
  },
}
SCSS
$custom: #a229ea;
$custom-light: #c474f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a229ea",
  "rgb": {
    "r": 162,
    "g": 41,
    "b": 234
  },
  "hsl": {
    "h": 277.617,
    "s": 82.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56848,
    "c": 0.26369,
    "h": 307.9
  },
  "luminance": 0.15208
}

Semantic roles & 50–950 ramp

primary
#A229EA
secondary
#ADE18E
accent
#F82F7A
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140917
muted
#827B85

Preview Lab

Preview with #A229EA

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

Preview Lab → · Contrast checker → · Palette generator →

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