#7F1978#7F1978

#7F1978 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.171 H 331.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7F1978
RGBrgb(127, 25, 120)
HSLhsl(304, 67%, 30%)
HSVhsv(304, 80%, 50%)
CMYKcmyk(0%, 80.3%, 5.5%, 50.2%)
CIE-LABlab(30.79, 52.50, -29.84)
CIE-LCHlch(30.79, 60.39, 330.39°)
OKLaboklab(42.61% 0.1499 -0.0823)
OKLCHoklch(42.61% 0.171 331.2)
XYZxyz(12.4902, 6.5644, 18.3749)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1978 #197F20
analogous
#53197F #7F1978 #7F1945
triadic
#7F1978 #787F19 #19787F
tetradic
#7F1978 #7F5319 #197F20 #19457F
square
#7F1978 #7F5319 #197F20 #19457F
split-complementary
#7F1978 #457F19 #197F53
monochromatic
#1A0518 #4C0F48 #7F1978 #B223A8 #D83ACD

Accessibility & contrast

On white

9.08
#7F1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1978
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1978#FFFFFF#000000##FFFFFF
##7F19781.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D407A
Deuteranopia (green-blind)
#3B4D76
Tritanopia (blue-blind)
#842748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1978;
/* rgb */ color: rgb(127, 25, 120);
/* oklch */ color: oklch(42.6% 0.171 331.2);
Tailwind
colors: {
  custom: {
    50: '#a8639f',
    500: '#7f1978',
    950: '#000000',
  },
}
SCSS
$custom: #7f1978;
$custom-light: #a8639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1978",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 304.118,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.17102,
    "h": 331.2
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#7F1978
secondary
#41B348
accent
#EA4A3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1978

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

Preview Lab → · Contrast checker → · Palette generator →

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