#7F1E9B#7F1E9B

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

Color values

HEX#7F1E9B
RGBrgb(127, 30, 155)
HSLhsl(287, 68%, 36%)
HSVhsv(287, 81%, 61%)
CMYKcmyk(18.1%, 80.6%, 0%, 39.2%)
CIE-LABlab(33.58, 57.29, -47.09)
CIE-LCHlch(33.58, 74.16, 320.58°)
OKLaboklab(45.31% 0.1428 -0.1327)
OKLCHoklch(45.31% 0.195 317.1)
XYZxyz(15.1322, 7.8078, 31.7140)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E9B #3A9B1E
analogous
#411E9B #7F1E9B #9B1E79
triadic
#7F1E9B #9B7F1E #1E9B7F
tetradic
#7F1E9B #9B411E #3A9B1E #1E799B
square
#7F1E9B #9B411E #3A9B1E #1E799B
split-complementary
#7F1E9B #799B1E #1E9B41
monochromatic
#2B0A34 #551468 #7F1E9B #A928CE #BF55DE

Accessibility & contrast

On white

8.20
#7F1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E9B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E9B#FFFFFF#000000##FFFFFF
##7F1E9B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1e9b;
/* rgb */ color: rgb(127, 30, 155);
/* oklch */ color: oklch(45.3% 0.195 317.1);
Tailwind
colors: {
  custom: {
    50: '#a867b9',
    500: '#7f1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e9b;
$custom-light: #a867b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e9b",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 286.56,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.19492,
    "h": 317.1
  },
  "luminance": 0.07807
}

Semantic roles & 50–950 ramp

primary
#7F1E9B
secondary
#6CC253
accent
#EA3D64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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