#7F1D9B#7F1D9B

#7F1D9B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.196 H 317.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7F1D9B
RGBrgb(127, 29, 155)
HSLhsl(287, 68%, 36%)
HSVhsv(287, 81%, 61%)
CMYKcmyk(18.1%, 81.3%, 0%, 39.2%)
CIE-LABlab(33.47, 57.60, -47.26)
CIE-LCHlch(33.47, 74.51, 320.63°)
OKLaboklab(45.24% 0.1436 -0.1332)
OKLCHoklch(45.24% 0.196 317.1)
XYZxyz(15.1073, 7.7580, 31.7057)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D9B #399B1D
analogous
#401D9B #7F1D9B #9B1D78
triadic
#7F1D9B #9B7F1D #1D9B7F
tetradic
#7F1D9B #9B401D #399B1D #1D789B
square
#7F1D9B #9B401D #399B1D #1D789B
split-complementary
#7F1D9B #789B1D #1D9B40
monochromatic
#2B0A34 #551367 #7F1D9B #A927CF #C053DF

Accessibility & contrast

On white

8.23
#7F1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D9B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D9B#FFFFFF#000000##FFFFFF
##7F1D9B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1F5198
Tritanopia (blue-blind)
#7E3B5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1d9b;
/* rgb */ color: rgb(127, 29, 155);
/* oklch */ color: oklch(45.2% 0.196 317.1);
Tailwind
colors: {
  custom: {
    50: '#a866b9',
    500: '#7f1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d9b;
$custom-light: #a866b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d9b",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 286.667,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45235,
    "c": 0.19584,
    "h": 317.1
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#7F1D9B
secondary
#6BC252
accent
#EB3C63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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