#9F2F8F#9F2F8F

#9F2F8F is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.182 H 334.2°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9F2F8F
RGBrgb(159, 47, 143)
HSLhsl(309, 54%, 40%)
HSVhsv(309, 70%, 62%)
CMYKcmyk(0%, 70.4%, 10.1%, 37.6%)
CIE-LABlab(40.23, 56.38, -28.88)
CIE-LCHlch(40.23, 63.35, 332.88°)
OKLaboklab(50.86% 0.1636 -0.079)
OKLCHoklch(50.86% 0.182 334.2)
XYZxyz(20.2727, 11.3888, 27.1118)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F8F #2F9F3F
analogous
#772F9F #9F2F8F #9F2F57
triadic
#9F2F8F #8F9F2F #2F8F9F
tetradic
#9F2F8F #9F772F #2F9F3F #2F579F
square
#9F2F8F #9F772F #2F9F3F #2F579F
split-complementary
#9F2F8F #579F2F #2F9F77
monochromatic
#41133A #702165 #9F2F8F #C844B5 #D673C7

Accessibility & contrast

On white

6.41
#9F2F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9F2F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F8F
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F8F#FFFFFF#000000##FFFFFF
##9F2F8F1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5492
Deuteranopia (green-blind)
#54658C
Tritanopia (blue-blind)
#A7385B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f2f8f;
/* rgb */ color: rgb(159, 47, 143);
/* oklch */ color: oklch(50.9% 0.182 334.2);
Tailwind
colors: {
  custom: {
    50: '#bf72b0',
    500: '#9f2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f8f;
$custom-light: #bf72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f8f",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 308.571,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50863,
    "c": 0.18169,
    "h": 334.2
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#9F2F8F
secondary
#6DBD78
accent
#DE5F4A
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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