#9F248B#9F248B

#9F248B is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.191 H 335.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9F248B
RGBrgb(159, 36, 139)
HSLhsl(310, 63%, 38%)
HSVhsv(310, 77%, 62%)
CMYKcmyk(0%, 77.4%, 12.6%, 37.6%)
CIE-LABlab(38.72, 59.47, -28.79)
CIE-LCHlch(38.72, 66.08, 334.17°)
OKLaboklab(49.71% 0.1742 -0.0786)
OKLCHoklch(49.71% 0.191 335.7)
XYZxyz(19.5895, 10.4986, 25.4158)
Luminance0.1050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F248B #249F38
analogous
#75249F #9F248B #9F244D
triadic
#9F248B #8B9F24 #248B9F
tetradic
#9F248B #9F7524 #249F38 #244D9F
square
#9F248B #9F7524 #249F38 #244D9F
split-complementary
#9F248B #4D9F24 #249F75
monochromatic
#3B0D34 #6D195F #9F248B #D030B6 #DB62C8

Accessibility & contrast

On white

6.78
#9F248B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F248B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F248B
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F248B#FFFFFF#000000##FFFFFF
##9F248B1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8E
Deuteranopia (green-blind)
#526288
Tritanopia (blue-blind)
#A72E56
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f248b;
/* rgb */ color: rgb(159, 36, 139);
/* oklch */ color: oklch(49.7% 0.191 335.7);
Tailwind
colors: {
  custom: {
    50: '#bf6dad',
    500: '#9f248b',
    950: '#000000',
  },
}
SCSS
$custom: #9f248b;
$custom-light: #bf6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f248b",
  "rgb": {
    "r": 159,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 309.756,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49712,
    "c": 0.19116,
    "h": 335.7
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#9F248B
secondary
#5EC16E
accent
#E65C42
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F248B

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

Preview Lab → · Contrast checker → · Palette generator →

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