#7F1B76#7F1B76

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

Color values

HEX#7F1B76
RGBrgb(127, 27, 118)
HSLhsl(305, 65%, 30%)
HSVhsv(305, 79%, 50%)
CMYKcmyk(0%, 78.7%, 7.1%, 50.2%)
CIE-LABlab(30.89, 51.58, -28.43)
CIE-LCHlch(30.89, 58.89, 331.14°)
OKLaboklab(42.65% 0.1481 -0.0782)
OKLCHoklch(42.65% 0.168 332.2)
XYZxyz(12.4144, 6.6049, 17.7571)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B76 #1B7F24
analogous
#561B7F #7F1B76 #7F1B44
triadic
#7F1B76 #767F1B #1B767F
tetradic
#7F1B76 #7F561B #1B7F24 #1B447F
square
#7F1B76 #7F561B #1B7F24 #1B447F
split-complementary
#7F1B76 #447F1B #1B7F56
monochromatic
#1A0618 #4D1047 #7F1B76 #B126A5 #D63EC8

Accessibility & contrast

On white

9.05
#7F1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B76
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B76#FFFFFF#000000##FFFFFF
##7F1B761.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1b76;
/* rgb */ color: rgb(127, 27, 118);
/* oklch */ color: oklch(42.6% 0.168 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8649e',
    500: '#7f1b76',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b76;
$custom-light: #a8649e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b76",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 305.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.16751,
    "h": 332.2
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#7F1B76
secondary
#43B34D
accent
#E84F40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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