#7F1D95#7F1D95

#7F1D95 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.191 H 319.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7F1D95
RGBrgb(127, 29, 149)
HSLhsl(289, 67%, 35%)
HSVhsv(289, 81%, 58%)
CMYKcmyk(14.8%, 80.5%, 0%, 41.6%)
CIE-LABlab(33.05, 56.44, -44.28)
CIE-LCHlch(33.05, 71.74, 321.89°)
OKLaboklab(44.81% 0.1445 -0.1244)
OKLCHoklch(44.81% 0.191 319.3)
XYZxyz(14.6159, 7.5614, 29.1176)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D95 #33951D
analogous
#431D95 #7F1D95 #951D6F
triadic
#7F1D95 #957F1D #1D957F
tetradic
#7F1D95 #95431D #33951D #1D6F95
square
#7F1D95 #95431D #33951D #1D6F95
split-complementary
#7F1D95 #6F951D #1D9543
monochromatic
#28092F #531362 #7F1D95 #AB27C8 #C350DD

Accessibility & contrast

On white

8.36
#7F1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D95
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D95#FFFFFF#000000##FFFFFF
##7F1D951.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#275192
Tritanopia (blue-blind)
#7F3859
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f1d95;
/* rgb */ color: rgb(127, 29, 149);
/* oklch */ color: oklch(44.8% 0.191 319.3);
Tailwind
colors: {
  custom: {
    50: '#a866b5',
    500: '#7f1d95',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d95;
$custom-light: #a866b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d95",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 289,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44805,
    "c": 0.19072,
    "h": 319.3
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#7F1D95
secondary
#63C04E
accent
#EA3D5D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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