#7F1D8B#7F1D8B

#7F1D8B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.182 H 323.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7F1D8B
RGBrgb(127, 29, 139)
HSLhsl(293, 65%, 33%)
HSVhsv(293, 79%, 55%)
CMYKcmyk(8.6%, 79.1%, 0%, 45.5%)
CIE-LABlab(32.38, 54.58, -39.20)
CIE-LCHlch(32.38, 67.20, 324.31°)
OKLaboklab(44.12% 0.1457 -0.1096)
OKLCHoklch(44.12% 0.182 323.1)
XYZxyz(13.8515, 7.2557, 25.0920)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D8B #298B1D
analogous
#481D8B #7F1D8B #8B1D60
triadic
#7F1D8B #8B7F1D #1D8B7F
tetradic
#7F1D8B #8B481D #298B1D #1D608B
square
#7F1D8B #8B481D #298B1D #1D608B
split-complementary
#7F1D8B #608B1D #1D8B48
monochromatic
#220826 #511258 #7F1D8B #AD28BE #C949D9

Accessibility & contrast

On white

8.57
#7F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D8B
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D8B#FFFFFF#000000##FFFFFF
##7F1D8B1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#305088
Tritanopia (blue-blind)
#813354
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1d8b;
/* rgb */ color: rgb(127, 29, 139);
/* oklch */ color: oklch(44.1% 0.182 323.1);
Tailwind
colors: {
  custom: {
    50: '#a866ad',
    500: '#7f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d8b;
$custom-light: #a866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d8b",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 293.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44117,
    "c": 0.18232,
    "h": 323.1
  },
  "luminance": 0.07255
}

Semantic roles & 50–950 ramp

primary
#7F1D8B
secondary
#55BB49
accent
#E83F52
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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