#7F1774#7F1774

#7F1774 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.170 H 333.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7F1774
RGBrgb(127, 23, 116)
HSLhsl(306, 69%, 29%)
HSVhsv(306, 82%, 50%)
CMYKcmyk(0%, 81.9%, 8.7%, 50.2%)
CIE-LABlab(30.37, 52.43, -27.98)
CIE-LCHlch(30.37, 59.43, 331.91°)
OKLaboklab(42.24% 0.1515 -0.0769)
OKLCHoklch(42.24% 0.17 333.1)
XYZxyz(12.2113, 6.3868, 17.1093)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1774 #177F22
analogous
#56177F #7F1774 #7F1740
triadic
#7F1774 #747F17 #17747F
tetradic
#7F1774 #7F5617 #177F22 #17407F
square
#7F1774 #7F5617 #177F22 #17407F
split-complementary
#7F1774 #407F17 #177F56
monochromatic
#1A0518 #4B0E45 #7F1774 #B320A3 #DB36C9

Accessibility & contrast

On white

9.22
#7F1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1774
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1774#FFFFFF#000000##FFFFFF
##7F17741.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113E76
Deuteranopia (green-blind)
#3C4D72
Tritanopia (blue-blind)
#852345
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1774;
/* rgb */ color: rgb(127, 23, 116);
/* oklch */ color: oklch(42.2% 0.170 333.1);
Tailwind
colors: {
  custom: {
    50: '#a8629c',
    500: '#7f1774',
    950: '#000000',
  },
}
SCSS
$custom: #7f1774;
$custom-light: #a8629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1774",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 306.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42235,
    "c": 0.16991,
    "h": 333.1
  },
  "luminance": 0.06386
}

Semantic roles & 50–950 ramp

primary
#7F1774
secondary
#3EB44B
accent
#EC4E3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1774

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

Preview Lab → · Contrast checker → · Palette generator →

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