#9A229F#9A229F

#9A229F is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.205 H 326.3°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9A229F
RGBrgb(154, 34, 159)
HSLhsl(298, 65%, 38%)
HSVhsv(298, 79%, 62%)
CMYKcmyk(3.1%, 78.6%, 0%, 37.6%)
CIE-LABlab(38.76, 62.14, -40.96)
CIE-LCHlch(38.76, 74.43, 326.61°)
OKLaboklab(49.93% 0.1709 -0.114)
OKLCHoklch(49.93% 0.205 326.3)
XYZxyz(20.1561, 10.5187, 33.7629)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A229F #279F22
analogous
#5B229F #9A229F #9F2265
triadic
#9A229F #9F9A22 #229F9A
tetradic
#9A229F #9F5B22 #279F22 #22659F
square
#9A229F #9F5B22 #279F22 #22659F
split-complementary
#9A229F #659F22 #229F5B
monochromatic
#380C3A #69176D #9A229F #CB2DD1 #D85FDD

Accessibility & contrast

On white

6.77
#9A229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9A229F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A229F
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A229F#FFFFFF#000000##FFFFFF
##9A229F1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#41609C
Tritanopia (blue-blind)
#9E3960
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9a229f;
/* rgb */ color: rgb(154, 34, 159);
/* oklch */ color: oklch(49.9% 0.205 326.3);
Tailwind
colors: {
  custom: {
    50: '#bc6cbc',
    500: '#9a229f',
    950: '#000000',
  },
}
SCSS
$custom: #9a229f;
$custom-light: #bc6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a229f",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 297.6,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4993,
    "c": 0.20544,
    "h": 326.3
  },
  "luminance": 0.10517
}

Semantic roles & 50–950 ramp

primary
#9A229F
secondary
#5FC15B
accent
#E84047
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #9A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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