#7F1E8B#7F1E8B

#7F1E8B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.181 H 323.0°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#7F1E8B
RGBrgb(127, 30, 139)
HSLhsl(293, 64%, 33%)
HSVhsv(293, 78%, 55%)
CMYKcmyk(8.6%, 78.4%, 0%, 45.5%)
CIE-LABlab(32.49, 54.26, -39.02)
CIE-LCHlch(32.49, 66.84, 324.28°)
OKLaboklab(44.2% 0.1448 -0.1091)
OKLCHoklch(44.2% 0.181 323)
XYZxyz(13.8764, 7.3055, 25.1003)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E8B #2A8B1E
analogous
#481E8B #7F1E8B #8B1E61
triadic
#7F1E8B #8B7F1E #1E8B7F
tetradic
#7F1E8B #8B481E #2A8B1E #1E618B
square
#7F1E8B #8B481E #2A8B1E #1E618B
split-complementary
#7F1E8B #618B1E #1E8B48
monochromatic
#230826 #511359 #7F1E8B #AD29BD #C94BD8

Accessibility & contrast

On white

8.53
#7F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E8B
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E8B#FFFFFF#000000##FFFFFF
##7F1E8B1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1e8b;
/* rgb */ color: rgb(127, 30, 139);
/* oklch */ color: oklch(44.2% 0.181 323.0);
Tailwind
colors: {
  custom: {
    50: '#a866ad',
    500: '#7f1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e8b;
$custom-light: #a866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e8b",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 293.394,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44196,
    "c": 0.18131,
    "h": 323
  },
  "luminance": 0.07305
}

Semantic roles & 50–950 ramp

primary
#7F1E8B
secondary
#57BB4A
accent
#E74053
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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