#7F1877#7F1877

#7F1877 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.171 H 331.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7F1877
RGBrgb(127, 24, 119)
HSLhsl(305, 68%, 30%)
HSVhsv(305, 81%, 50%)
CMYKcmyk(0%, 81.1%, 6.3%, 50.2%)
CIE-LABlab(30.64, 52.63, -29.46)
CIE-LCHlch(30.64, 60.32, 330.76°)
OKLaboklab(42.48% 0.1508 -0.0812)
OKLCHoklch(42.48% 0.171 331.7)
XYZxyz(12.4088, 6.4982, 18.0499)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1877 #187F20
analogous
#54187F #7F1877 #7F1844
triadic
#7F1877 #777F18 #18777F
tetradic
#7F1877 #7F5418 #187F20 #18447F
square
#7F1877 #7F5418 #187F20 #18447F
split-complementary
#7F1877 #447F18 #187F54
monochromatic
#1A0518 #4C0E47 #7F1877 #B222A7 #D938CD

Accessibility & contrast

On white

9.13
#7F1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1877
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1877#FFFFFF#000000##FFFFFF
##7F18771.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3F79
Deuteranopia (green-blind)
#3B4D75
Tritanopia (blue-blind)
#852647
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1877;
/* rgb */ color: rgb(127, 24, 119);
/* oklch */ color: oklch(42.5% 0.171 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8639e',
    500: '#7f1877',
    950: '#000000',
  },
}
SCSS
$custom: #7f1877;
$custom-light: #a8639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1877",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 304.66,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42482,
    "c": 0.17122,
    "h": 331.7
  },
  "luminance": 0.06497
}

Semantic roles & 50–950 ramp

primary
#7F1877
secondary
#3FB348
accent
#EB4A3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1877

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

Preview Lab → · Contrast checker → · Palette generator →

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