#9F1897#9F1897

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

Color values

HEX#9F1897
RGBrgb(159, 24, 151)
HSLhsl(304, 74%, 36%)
HSVhsv(304, 85%, 62%)
CMYKcmyk(0%, 84.9%, 5%, 37.6%)
CIE-LABlab(38.31, 64.36, -36.78)
CIE-LCHlch(38.31, 74.13, 330.25°)
OKLaboklab(49.62% 0.1836 -0.1016)
OKLCHoklch(49.62% 0.21 331)
XYZxyz(20.2106, 10.2603, 30.1881)
Luminance0.1026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1897 #189F20
analogous
#63189F #9F1897 #9F1853
triadic
#9F1897 #979F18 #18979F
tetradic
#9F1897 #9F6318 #189F20 #18539F
square
#9F1897 #9F6318 #189F20 #18539F
split-complementary
#9F1897 #539F18 #189F63
monochromatic
#350832 #6A1064 #9F1897 #D420C9 #E44DDB

Accessibility & contrast

On white

6.88
#9F1897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9F1897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1897
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1897#FFFFFF#000000##FFFFFF
##9F18971.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#486094
Tritanopia (blue-blind)
#A62E5A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1897;
/* rgb */ color: rgb(159, 24, 151);
/* oklch */ color: oklch(49.6% 0.210 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6ab6',
    500: '#9f1897',
    950: '#000000',
  },
}
SCSS
$custom: #9f1897;
$custom-light: #bf6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1897",
  "rgb": {
    "r": 159,
    "g": 24,
    "b": 151
  },
  "hsl": {
    "h": 303.556,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.20984,
    "h": 331
  },
  "luminance": 0.10259
}

Semantic roles & 50–950 ramp

primary
#9F1897
secondary
#4DC654
accent
#F04237
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F1897

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

Preview Lab → · Contrast checker → · Palette generator →

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