#9A2187#9A2187

#9A2187 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.189 H 335.5°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9A2187
RGBrgb(154, 33, 135)
HSLhsl(309, 65%, 37%)
HSVhsv(309, 79%, 60%)
CMYKcmyk(0%, 78.6%, 12.3%, 39.6%)
CIE-LABlab(37.31, 58.62, -28.61)
CIE-LCHlch(37.31, 65.23, 333.99°)
OKLaboklab(48.47% 0.1716 -0.0782)
OKLCHoklch(48.47% 0.189 335.5)
XYZxyz(18.2437, 9.7087, 23.8301)
Luminance0.0971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2187 #219A34
analogous
#71219A #9A2187 #9A214B
triadic
#9A2187 #879A21 #21879A
tetradic
#9A2187 #9A7121 #219A34 #214B9A
square
#9A2187 #9A7121 #219A34 #214B9A
split-complementary
#9A2187 #4B9A21 #219A71
monochromatic
#350B2F #68165B #9A2187 #CC2CB3 #DC5AC7

Accessibility & contrast

On white

7.14
#9A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9A2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A2187
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2187#FFFFFF#000000##FFFFFF
##9A21871.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C8A
Deuteranopia (green-blind)
#4E5E84
Tritanopia (blue-blind)
#A22B53
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a2187;
/* rgb */ color: rgb(154, 33, 135);
/* oklch */ color: oklch(48.5% 0.189 335.5);
Tailwind
colors: {
  custom: {
    50: '#bc6baa',
    500: '#9a2187',
    950: '#000000',
  },
}
SCSS
$custom: #9a2187;
$custom-light: #bc6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2187",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 309.421,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48467,
    "c": 0.18858,
    "h": 335.5
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

primary
#9A2187
secondary
#57C067
accent
#E85A40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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