#7F1C76#7F1C76

#7F1C76 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.166 H 332.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7F1C76
RGBrgb(127, 28, 118)
HSLhsl(305, 64%, 30%)
HSVhsv(305, 78%, 50%)
CMYKcmyk(0%, 78%, 7.1%, 50.2%)
CIE-LABlab(31.00, 51.26, -28.25)
CIE-LCHlch(31.00, 58.53, 331.14°)
OKLaboklab(42.72% 0.1472 -0.0777)
OKLCHoklch(42.72% 0.166 332.2)
XYZxyz(12.4377, 6.6516, 17.7648)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C76 #1C7F25
analogous
#571C7F #7F1C76 #7F1C44
triadic
#7F1C76 #767F1C #1C767F
tetradic
#7F1C76 #7F571C #1C7F25 #1C447F
square
#7F1C76 #7F571C #1C7F25 #1C447F
split-complementary
#7F1C76 #447F1C #1C7F57
monochromatic
#1B0619 #4D1147 #7F1C76 #B127A5 #D540C7

Accessibility & contrast

On white

9.01
#7F1C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F1C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C76
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C76#FFFFFF#000000##FFFFFF
##7F1C761.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154078
Deuteranopia (green-blind)
#3D4E74
Tritanopia (blue-blind)
#852848
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1c76;
/* rgb */ color: rgb(127, 28, 118);
/* oklch */ color: oklch(42.7% 0.166 332.2);
Tailwind
colors: {
  custom: {
    50: '#a7649e',
    500: '#7f1c76',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c76;
$custom-light: #a7649e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c76",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 305.455,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42723,
    "c": 0.16647,
    "h": 332.2
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#7F1C76
secondary
#44B34E
accent
#E75041
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1C76

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

Preview Lab → · Contrast checker → · Palette generator →

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