#7F1988#7F1988

#7F1988 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.184 H 324.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7F1988
RGBrgb(127, 25, 136)
HSLhsl(295, 69%, 32%)
HSVhsv(295, 82%, 53%)
CMYKcmyk(6.6%, 81.6%, 0%, 46.7%)
CIE-LABlab(31.77, 55.23, -38.31)
CIE-LCHlch(31.77, 67.22, 325.25°)
OKLaboklab(43.63% 0.1492 -0.107)
OKLCHoklch(43.63% 0.184 324.4)
XYZxyz(13.5436, 6.9857, 23.9228)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1988 #228819
analogous
#481988 #7F1988 #88195A
triadic
#7F1988 #887F19 #19887F
tetradic
#7F1988 #884819 #228819 #195A88
square
#7F1988 #884819 #228819 #195A88
split-complementary
#7F1988 #5A8819 #198848
monochromatic
#1E0621 #4F0F54 #7F1988 #AF23BC #CF40DC

Accessibility & contrast

On white

8.76
#7F1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1988
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1988#FFFFFF#000000##FFFFFF
##7F19881.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#822F51
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1988;
/* rgb */ color: rgb(127, 25, 136);
/* oklch */ color: oklch(43.6% 0.184 324.4);
Tailwind
colors: {
  custom: {
    50: '#a864ab',
    500: '#7f1988',
    950: '#000000',
  },
}
SCSS
$custom: #7f1988;
$custom-light: #a864ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1988",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 295.135,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43625,
    "c": 0.18361,
    "h": 324.4
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

primary
#7F1988
secondary
#4BBB41
accent
#EC3C4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1988

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

Preview Lab → · Contrast checker → · Palette generator →

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