#7F1F8B#7F1F8B

#7F1F8B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.180 H 323.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7F1F8B
RGBrgb(127, 31, 139)
HSLhsl(293, 64%, 33%)
HSVhsv(293, 78%, 55%)
CMYKcmyk(8.6%, 77.7%, 0%, 45.5%)
CIE-LABlab(32.61, 53.93, -38.84)
CIE-LCHlch(32.61, 66.46, 324.24°)
OKLaboklab(44.28% 0.144 -0.1085)
OKLCHoklch(44.28% 0.18 323)
XYZxyz(13.9021, 7.3569, 25.1089)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F8B #2B8B1F
analogous
#491F8B #7F1F8B #8B1F61
triadic
#7F1F8B #8B7F1F #1F8B7F
tetradic
#7F1F8B #8B491F #2B8B1F #1F618B
square
#7F1F8B #8B491F #2B8B1F #1F618B
split-complementary
#7F1F8B #618B1F #1F8B49
monochromatic
#240927 #511459 #7F1F8B #AD2ABD #C84DD7

Accessibility & contrast

On white

8.50
#7F1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F8B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F8B#FFFFFF#000000##FFFFFF
##7F1F8B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#813454
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1f8b;
/* rgb */ color: rgb(127, 31, 139);
/* oklch */ color: oklch(44.3% 0.180 323.0);
Tailwind
colors: {
  custom: {
    50: '#a866ad',
    500: '#7f1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f8b;
$custom-light: #a866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f8b",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 293.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44276,
    "c": 0.18028,
    "h": 323
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#7F1F8B
secondary
#58BA4C
accent
#E74154
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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