#9F2895#9F2895

#9F2895 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.194 H 331.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9F2895
RGBrgb(159, 40, 149)
HSLhsl(305, 60%, 39%)
HSVhsv(305, 75%, 62%)
CMYKcmyk(0%, 74.8%, 6.3%, 37.6%)
CIE-LABlab(39.68, 59.76, -33.39)
CIE-LCHlch(39.68, 68.45, 330.81°)
OKLaboklab(50.57% 0.1712 -0.0919)
OKLCHoklch(50.57% 0.194 331.8)
XYZxyz(20.4817, 11.0601, 29.4840)
Luminance0.1106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2895 #289F32
analogous
#6E289F #9F2895 #9F285A
triadic
#9F2895 #959F28 #28959F
tetradic
#9F2895 #9F6E28 #289F32 #285A9F
square
#9F2895 #9F6E28 #289F32 #285A9F
split-complementary
#9F2895 #5A9F28 #289F6E
monochromatic
#3D0F39 #6E1C67 #9F2895 #CD37C0 #D968D0

Accessibility & contrast

On white

6.54
#9F2895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9F2895 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2895
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2895#FFFFFF#000000##FFFFFF
##9F28951.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5398
Deuteranopia (green-blind)
#4E6392
Tritanopia (blue-blind)
#A6365C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2895;
/* rgb */ color: rgb(159, 40, 149);
/* oklch */ color: oklch(50.6% 0.194 331.8);
Tailwind
colors: {
  custom: {
    50: '#bf6fb4',
    500: '#9f2895',
    950: '#000000',
  },
}
SCSS
$custom: #9f2895;
$custom-light: #bf6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2895",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 305.042,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5057,
    "c": 0.19426,
    "h": 331.8
  },
  "luminance": 0.11058
}

Semantic roles & 50–950 ramp

primary
#9F2895
secondary
#64BF6B
accent
#E35245
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2895

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

Preview Lab → · Contrast checker → · Palette generator →

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