#9A229E#9A229E

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

Color values

HEX#9A229E
RGBrgb(154, 34, 158)
HSLhsl(298, 65%, 38%)
HSVhsv(298, 78%, 62%)
CMYKcmyk(2.5%, 78.5%, 0%, 38%)
CIE-LABlab(38.70, 61.97, -40.45)
CIE-LCHlch(38.70, 74.01, 326.87°)
OKLaboklab(49.87% 0.171 -0.1125)
OKLCHoklch(49.87% 0.205 326.7)
XYZxyz(20.0697, 10.4841, 33.3077)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A229E #269E22
analogous
#5C229E #9A229E #9E2264
triadic
#9A229E #9E9A22 #229E9A
tetradic
#9A229E #9E5C22 #269E22 #22649E
square
#9A229E #9E5C22 #269E22 #22649E
split-complementary
#9A229E #649E22 #229E5C
monochromatic
#380C39 #69176C #9A229E #CB2DD0 #D85EDC

Accessibility & contrast

On white

6.78
#9A229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9A229E
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A229E#FFFFFF#000000##FFFFFF
##9A229E1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#42609B
Tritanopia (blue-blind)
#9E3860
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9a229e;
/* rgb */ color: rgb(154, 34, 158);
/* oklch */ color: oklch(49.9% 0.205 326.7);
Tailwind
colors: {
  custom: {
    50: '#bc6cbb',
    500: '#9a229e',
    950: '#000000',
  },
}
SCSS
$custom: #9a229e;
$custom-light: #bc6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a229e",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 298.065,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49868,
    "c": 0.20466,
    "h": 326.7
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#9A229E
secondary
#5EC15B
accent
#E84046
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #9A229E

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

Preview Lab → · Contrast checker → · Palette generator →

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