#7F1B85#7F1B85

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

Color values

HEX#7F1B85
RGBrgb(127, 27, 133)
HSLhsl(297, 66%, 31%)
HSVhsv(297, 80%, 52%)
CMYKcmyk(4.5%, 79.7%, 0%, 47.8%)
CIE-LABlab(31.78, 54.12, -36.43)
CIE-LCHlch(31.78, 65.24, 326.05°)
OKLaboklab(43.57% 0.1479 -0.1015)
OKLCHoklch(43.57% 0.179 325.5)
XYZxyz(13.3777, 6.9903, 22.8304)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B85 #21851B
analogous
#4A1B85 #7F1B85 #851B56
triadic
#7F1B85 #857F1B #1B857F
tetradic
#7F1B85 #854A1B #21851B #1B5685
square
#7F1B85 #854A1B #21851B #1B5685
split-complementary
#7F1B85 #56851B #1B854A
monochromatic
#1E061F #4E1152 #7F1B85 #B025B8 #D042D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F1B85#FFFFFF#000000##FFFFFF
##7F1B851.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)
#004388
Deuteranopia (green-blind)
#344F83
Tritanopia (blue-blind)
#822F50
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1b85;
/* rgb */ color: rgb(127, 27, 133);
/* oklch */ color: oklch(43.6% 0.179 325.5);
Tailwind
colors: {
  custom: {
    50: '#a865a9',
    500: '#7f1b85',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b85;
$custom-light: #a865a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b85",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 296.604,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43571,
    "c": 0.17934,
    "h": 325.5
  },
  "luminance": 0.06989
}

Semantic roles & 50–950 ramp

primary
#7F1B85
secondary
#4AB844
accent
#E93F48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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