#7D1F99#7D1F99

#7D1F99 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.192 H 316.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7D1F99
RGBrgb(125, 31, 153)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 80%, 60%)
CMYKcmyk(18.3%, 79.7%, 0%, 40%)
CIE-LABlab(33.22, 56.20, -46.47)
CIE-LCHlch(33.22, 72.92, 320.42°)
OKLaboklab(44.95% 0.1398 -0.1309)
OKLCHoklch(44.95% 0.192 316.9)
XYZxyz(14.6963, 7.6405, 30.8314)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F99 #3B991F
analogous
#401F99 #7D1F99 #991F78
triadic
#7D1F99 #997D1F #1F997D
tetradic
#7D1F99 #99401F #3B991F #1F7899
square
#7D1F99 #99401F #3B991F #1F7899
split-complementary
#7D1F99 #78991F #1F9940
monochromatic
#2A0A33 #531566 #7D1F99 #A729CC #BE56DD

Accessibility & contrast

On white

8.31
#7D1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F99
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F99#FFFFFF#000000##FFFFFF
##7D1F991.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#205196
Tritanopia (blue-blind)
#7B3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1f99;
/* rgb */ color: rgb(125, 31, 153);
/* oklch */ color: oklch(44.9% 0.192 316.9);
Tailwind
colors: {
  custom: {
    50: '#a767b8',
    500: '#7d1f99',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f99;
$custom-light: #a767b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f99",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 286.23,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44949,
    "c": 0.19152,
    "h": 316.9
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#7D1F99
secondary
#6CC054
accent
#E93F66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1F99

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

Preview Lab → · Contrast checker → · Palette generator →

#7D1F99 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva