#9F238A#9F238A

#9F238A is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.6% C 0.191 H 336.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9F238A
RGBrgb(159, 35, 138)
HSLhsl(310, 64%, 38%)
HSVhsv(310, 78%, 62%)
CMYKcmyk(0%, 78%, 13.2%, 37.6%)
CIE-LABlab(38.57, 59.62, -28.42)
CIE-LCHlch(38.57, 66.05, 334.51°)
OKLaboklab(49.59% 0.1751 -0.0776)
OKLCHoklch(49.59% 0.191 336.1)
XYZxyz(19.4869, 10.4098, 25.0228)
Luminance0.1041 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F238A #239F38
analogous
#76239F #9F238A #9F234C
triadic
#9F238A #8A9F23 #238A9F
tetradic
#9F238A #9F7623 #239F38 #234C9F
square
#9F238A #9F7623 #239F38 #234C9F
split-complementary
#9F238A #4C9F23 #239F76
monochromatic
#3B0D33 #6D185E #9F238A #D12EB5 #DC60C7

Accessibility & contrast

On white

6.81
#9F238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F238A
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F238A#FFFFFF#000000##FFFFFF
##9F238A1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8D
Deuteranopia (green-blind)
#526187
Tritanopia (blue-blind)
#A72D55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f238a;
/* rgb */ color: rgb(159, 35, 138);
/* oklch */ color: oklch(49.6% 0.191 336.1);
Tailwind
colors: {
  custom: {
    50: '#bf6cac',
    500: '#9f238a',
    950: '#000000',
  },
}
SCSS
$custom: #9f238a;
$custom-light: #bf6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f238a",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 310.161,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49585,
    "c": 0.19146,
    "h": 336.1
  },
  "luminance": 0.10408
}

Semantic roles & 50–950 ramp

primary
#9F238A
secondary
#5DC16E
accent
#E75D41
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F238A

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

Preview Lab → · Contrast checker → · Palette generator →

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