#9E228F#9E228F

#9E228F is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.195 H 333.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#9E228F
RGBrgb(158, 34, 143)
HSLhsl(307, 65%, 38%)
HSVhsv(307, 78%, 62%)
CMYKcmyk(0%, 78.5%, 9.5%, 38%)
CIE-LABlab(38.55, 60.43, -31.53)
CIE-LCHlch(38.55, 68.17, 332.45°)
OKLaboklab(49.62% 0.1752 -0.0865)
OKLCHoklch(49.62% 0.195 333.7)
XYZxyz(19.6307, 10.3981, 26.9544)
Luminance0.1040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E228F #229E31
analogous
#6F229E #9E228F #9E2251
triadic
#9E228F #8F9E22 #228F9E
tetradic
#9E228F #9E6F22 #229E31 #22519E
square
#9E228F #9E6F22 #229E31 #22519E
split-complementary
#9E228F #519E22 #229E6F
monochromatic
#390C34 #6C1761 #9E228F #D02DBD #DC5ECD

Accessibility & contrast

On white

6.82
#9E228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9E228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E228F
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E228F#FFFFFF#000000##FFFFFF
##9E228F1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F92
Deuteranopia (green-blind)
#4E618C
Tritanopia (blue-blind)
#A62F57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e228f;
/* rgb */ color: rgb(158, 34, 143);
/* oklch */ color: oklch(49.6% 0.195 333.7);
Tailwind
colors: {
  custom: {
    50: '#be6cb0',
    500: '#9e228f',
    950: '#000000',
  },
}
SCSS
$custom: #9e228f;
$custom-light: #be6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e228f",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 307.258,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.19542,
    "h": 333.7
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#9E228F
secondary
#5BC167
accent
#E85440
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E228F

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

Preview Lab → · Contrast checker → · Palette generator →

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