#7F1B74#7F1B74

#7F1B74 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.166 H 333.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7F1B74
RGBrgb(127, 27, 116)
HSLhsl(307, 65%, 30%)
HSVhsv(307, 79%, 50%)
CMYKcmyk(0%, 78.7%, 8.7%, 50.2%)
CIE-LABlab(30.78, 51.25, -27.33)
CIE-LCHlch(30.78, 58.08, 331.93°)
OKLaboklab(42.53% 0.148 -0.0751)
OKLCHoklch(42.53% 0.166 333.1)
XYZxyz(12.2968, 6.5579, 17.1378)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B74 #1B7F26
analogous
#581B7F #7F1B74 #7F1B42
triadic
#7F1B74 #747F1B #1B747F
tetradic
#7F1B74 #7F581B #1B7F26 #1B427F
square
#7F1B74 #7F581B #1B7F26 #1B427F
split-complementary
#7F1B74 #427F1B #1B7F58
monochromatic
#1A0618 #4D1046 #7F1B74 #B126A2 #D63EC5

Accessibility & contrast

On white

9.09
#7F1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1B74
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B74#FFFFFF#000000##FFFFFF
##7F1B741.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#3E4D72
Tritanopia (blue-blind)
#852646
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1b74;
/* rgb */ color: rgb(127, 27, 116);
/* oklch */ color: oklch(42.5% 0.166 333.1);
Tailwind
colors: {
  custom: {
    50: '#a8649c',
    500: '#7f1b74',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b74;
$custom-light: #a8649c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b74",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 306.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.16599,
    "h": 333.1
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#7F1B74
secondary
#43B34F
accent
#E85240
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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