#7F1970#7F1970

#7F1970 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.165 H 335.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7F1970
RGBrgb(127, 25, 112)
HSLhsl(309, 67%, 30%)
HSVhsv(309, 80%, 50%)
CMYKcmyk(0%, 80.3%, 11.8%, 50.2%)
CIE-LABlab(30.35, 51.23, -25.46)
CIE-LCHlch(30.35, 57.21, 333.57°)
OKLaboklab(42.15% 0.1496 -0.0697)
OKLCHoklch(42.15% 0.165 335)
XYZxyz(12.0248, 6.3782, 15.9239)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1970 #197F28
analogous
#5B197F #7F1970 #7F193D
triadic
#7F1970 #707F19 #19707F
tetradic
#7F1970 #7F5B19 #197F28 #193D7F
square
#7F1970 #7F5B19 #197F28 #193D7F
split-complementary
#7F1970 #3D7F19 #197F5B
monochromatic
#1A0517 #4C0F43 #7F1970 #B2239D #D83AC1

Accessibility & contrast

On white

9.23
#7F1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1970
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1970#FFFFFF#000000##FFFFFF
##7F19701.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E72
Deuteranopia (green-blind)
#3F4D6E
Tritanopia (blue-blind)
#862244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1970;
/* rgb */ color: rgb(127, 25, 112);
/* oklch */ color: oklch(42.1% 0.165 335.0);
Tailwind
colors: {
  custom: {
    50: '#a86399',
    500: '#7f1970',
    950: '#000000',
  },
}
SCSS
$custom: #7f1970;
$custom-light: #a86399;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1970",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 308.824,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42149,
    "c": 0.16505,
    "h": 335
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#7F1970
secondary
#41B351
accent
#EA573E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1970

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

Preview Lab → · Contrast checker → · Palette generator →

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