#7F2178#7F2178

#7F2178 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.162 H 331.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7F2178
RGBrgb(127, 33, 120)
HSLhsl(304, 59%, 31%)
HSVhsv(304, 74%, 50%)
CMYKcmyk(0%, 74%, 5.5%, 50.2%)
CIE-LABlab(31.71, 49.89, -28.40)
CIE-LCHlch(31.71, 57.40, 330.35°)
OKLaboklab(43.27% 0.1424 -0.0782)
OKLCHoklch(43.27% 0.162 331.2)
XYZxyz(12.6864, 6.9568, 18.4403)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2178 #217F28
analogous
#57217F #7F2178 #7F2149
triadic
#7F2178 #787F21 #21787F
tetradic
#7F2178 #7F5721 #217F28 #21497F
square
#7F2178 #7F5721 #217F28 #21497F
split-complementary
#7F2178 #497F21 #217F57
monochromatic
#1E081C #4E144A #7F2178 #B02EA6 #D04AC6

Accessibility & contrast

On white

8.78
#7F2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2178
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2178#FFFFFF#000000##FFFFFF
##7F21781.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19427A
Deuteranopia (green-blind)
#3E4F76
Tritanopia (blue-blind)
#842C4A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f2178;
/* rgb */ color: rgb(127, 33, 120);
/* oklch */ color: oklch(43.3% 0.162 331.2);
Tailwind
colors: {
  custom: {
    50: '#a7669f',
    500: '#7f2178',
    950: '#000000',
  },
}
SCSS
$custom: #7f2178;
$custom-light: #a7669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2178",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 304.468,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43268,
    "c": 0.16241,
    "h": 331.2
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#7F2178
secondary
#4AB252
accent
#E25146
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2178

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

Preview Lab → · Contrast checker → · Palette generator →

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