#9A229A#9A229A

#9A229A is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.202 H 328.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9A229A
RGBrgb(154, 34, 154)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 60%)
CMYKcmyk(0%, 77.9%, 0%, 39.6%)
CIE-LABlab(38.46, 61.31, -38.41)
CIE-LCHlch(38.46, 72.35, 327.93°)
OKLaboklab(49.62% 0.1711 -0.1065)
OKLCHoklch(49.62% 0.202 328.1)
XYZxyz(19.7310, 10.3486, 31.5239)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A229A #229A22
analogous
#5E229A #9A229A #9A225E
triadic
#9A229A #9A9A22 #229A9A
tetradic
#9A229A #9A5E22 #229A22 #225E9A
square
#9A229A #9A5E22 #229A22 #225E9A
split-complementary
#9A229A #5E9A22 #229A5E
monochromatic
#360C36 #681768 #9A229A #CC2DCC #DB5BDB

Accessibility & contrast

On white

6.84
#9A229A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9A229A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A229A
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A229A#FFFFFF#000000##FFFFFF
##9A229A1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519D
Deuteranopia (green-blind)
#456097
Tritanopia (blue-blind)
#9F365E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9a229a;
/* rgb */ color: rgb(154, 34, 154);
/* oklch */ color: oklch(49.6% 0.202 328.1);
Tailwind
colors: {
  custom: {
    50: '#bc6cb8',
    500: '#9a229a',
    950: '#000000',
  },
}
SCSS
$custom: #9a229a;
$custom-light: #bc6cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#9a229a",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 300,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.20159,
    "h": 328.1
  },
  "luminance": 0.10347
}

Semantic roles & 50–950 ramp

primary
#9A229A
secondary
#58BF58
accent
#E74141
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9A229A

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

Preview Lab → · Contrast checker → · Palette generator →

#9A229A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva