#A6229F#A6229F

#A6229F is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.211 H 330.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A6229F
RGBrgb(166, 34, 159)
HSLhsl(303, 66%, 39%)
HSVhsv(303, 80%, 65%)
CMYKcmyk(0%, 79.5%, 4.2%, 34.9%)
CIE-LABlab(40.83, 64.62, -37.54)
CIE-LCHlch(40.83, 74.74, 329.84°)
OKLaboklab(51.8% 0.1837 -0.1037)
OKLCHoklch(51.8% 0.211 330.5)
XYZxyz(22.5559, 11.7561, 33.8753)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6229F #22A629
analogous
#6B22A6 #A6229F #A6225D
triadic
#A6229F #9FA622 #229FA6
tetradic
#A6229F #A66B22 #22A629 #225DA6
square
#A6229F #A66B22 #22A629 #225DA6
split-complementary
#A6229F #5DA622 #22A66B
monochromatic
#400D3E #73186E #A6229F #D530CC #DF63D9

Accessibility & contrast

On white

6.27
#A6229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A6229F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6229F
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6229F#FFFFFF#000000##FFFFFF
##A6229F1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D55A2
Deuteranopia (green-blind)
#4D669C
Tritanopia (blue-blind)
#AD3560
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a6229f;
/* rgb */ color: rgb(166, 34, 159);
/* oklch */ color: oklch(51.8% 0.211 330.5);
Tailwind
colors: {
  custom: {
    50: '#c46ebc',
    500: '#a6229f',
    950: '#000000',
  },
}
SCSS
$custom: #a6229f;
$custom-light: #c46ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#a6229f",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 303.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51795,
    "c": 0.21094,
    "h": 330.5
  },
  "luminance": 0.11754
}

Semantic roles & 50–950 ramp

primary
#A6229F
secondary
#5FC465
accent
#E9483F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A6229F

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

Preview Lab → · Contrast checker → · Palette generator →

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