#7F1A85#7F1A85

#7F1A85 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.180 H 325.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7F1A85
RGBrgb(127, 26, 133)
HSLhsl(297, 67%, 31%)
HSVhsv(297, 80%, 52%)
CMYKcmyk(4.5%, 80.5%, 0%, 47.8%)
CIE-LABlab(31.68, 54.41, -36.59)
CIE-LCHlch(31.68, 65.58, 326.08°)
OKLaboklab(43.5% 0.1487 -0.1019)
OKLCHoklch(43.5% 0.18 325.6)
XYZxyz(13.3551, 6.9452, 22.8229)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A85 #20851A
analogous
#491A85 #7F1A85 #851A55
triadic
#7F1A85 #857F1A #1A857F
tetradic
#7F1A85 #85491A #20851A #1A5585
square
#7F1A85 #85491A #20851A #1A5585
split-complementary
#7F1A85 #55851A #1A8549
monochromatic
#1D061F #4E1052 #7F1A85 #B024B8 #D140DA

Accessibility & contrast

On white

8.79
#7F1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A85
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A85#FFFFFF#000000##FFFFFF
##7F1A851.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#334F83
Tritanopia (blue-blind)
#822E50
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1a85;
/* rgb */ color: rgb(127, 26, 133);
/* oklch */ color: oklch(43.5% 0.180 325.6);
Tailwind
colors: {
  custom: {
    50: '#a864a9',
    500: '#7f1a85',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a85;
$custom-light: #a864a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a85",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 296.636,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43498,
    "c": 0.18028,
    "h": 325.6
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#7F1A85
secondary
#49B842
accent
#EA3E47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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