#7F1A8B#7F1A8B

#7F1A8B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.185 H 323.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7F1A8B
RGBrgb(127, 26, 139)
HSLhsl(294, 68%, 32%)
HSVhsv(294, 81%, 55%)
CMYKcmyk(8.6%, 81.3%, 0%, 45.5%)
CIE-LABlab(32.07, 55.48, -39.70)
CIE-LCHlch(32.07, 68.23, 324.41°)
OKLaboklab(43.9% 0.1482 -0.111)
OKLCHoklch(43.9% 0.185 323.2)
XYZxyz(13.7816, 7.1157, 25.0687)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A8B #268B1A
analogous
#461A8B #7F1A8B #8B1A5F
triadic
#7F1A8B #8B7F1A #1A8B7F
tetradic
#7F1A8B #8B461A #268B1A #1A5F8B
square
#7F1A8B #8B461A #268B1A #1A5F8B
split-complementary
#7F1A8B #5F8B1A #1A8B46
monochromatic
#210724 #501057 #7F1A8B #AE24BF #CC43DC

Accessibility & contrast

On white

8.67
#7F1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A8B
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A8B#FFFFFF#000000##FFFFFF
##7F1A8B1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2F4F88
Tritanopia (blue-blind)
#813153
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1a8b;
/* rgb */ color: rgb(127, 26, 139);
/* oklch */ color: oklch(43.9% 0.185 323.2);
Tailwind
colors: {
  custom: {
    50: '#a864ad',
    500: '#7f1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a8b;
$custom-light: #a864ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a8b",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 293.628,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43896,
    "c": 0.18515,
    "h": 323.2
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#7F1A8B
secondary
#51BD44
accent
#EB3C4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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