#9A1F99#9A1F99

#9A1F99 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.204 H 328.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9A1F99
RGBrgb(154, 31, 153)
HSLhsl(300, 66%, 36%)
HSVhsv(300, 80%, 60%)
CMYKcmyk(0%, 79.9%, 0.6%, 39.6%)
CIE-LABlab(38.11, 61.98, -38.36)
CIE-LCHlch(38.11, 72.89, 328.25°)
OKLaboklab(49.36% 0.1735 -0.1064)
OKLCHoklch(49.36% 0.204 328.5)
XYZxyz(19.5660, 10.1514, 31.0597)
Luminance0.1015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F99 #1F9A20
analogous
#5E1F9A #9A1F99 #9A1F5C
triadic
#9A1F99 #999A1F #1F999A
tetradic
#9A1F99 #9A5E1F #1F9A20 #1F5C9A
square
#9A1F99 #9A5E1F #1F9A20 #1F5C9A
split-complementary
#9A1F99 #5C9A1F #1F9A5E
monochromatic
#340A34 #671566 #9A1F99 #CD29CC #DD56DC

Accessibility & contrast

On white

6.93
#9A1F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9A1F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A1F99
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F99#FFFFFF#000000##FFFFFF
##9A1F991.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#445F96
Tritanopia (blue-blind)
#9F345C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9a1f99;
/* rgb */ color: rgb(154, 31, 153);
/* oklch */ color: oklch(49.4% 0.204 328.5);
Tailwind
colors: {
  custom: {
    50: '#bc6bb7',
    500: '#9a1f99',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f99;
$custom-light: #bc6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f99",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 300.488,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49358,
    "c": 0.20354,
    "h": 328.5
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#9A1F99
secondary
#54C155
accent
#E9403E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9A1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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