#7F1F9B#7F1F9B

#7F1F9B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.194 H 317.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7F1F9B
RGBrgb(127, 31, 155)
HSLhsl(286, 67%, 36%)
HSVhsv(286, 80%, 61%)
CMYKcmyk(18.1%, 80%, 0%, 39.2%)
CIE-LABlab(33.69, 56.97, -46.92)
CIE-LCHlch(33.69, 73.81, 320.53°)
OKLaboklab(45.39% 0.142 -0.1322)
OKLCHoklch(45.39% 0.194 317)
XYZxyz(15.1579, 7.8592, 31.7225)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F9B #3B9B1F
analogous
#411F9B #7F1F9B #9B1F79
triadic
#7F1F9B #9B7F1F #1F9B7F
tetradic
#7F1F9B #9B411F #3B9B1F #1F799B
square
#7F1F9B #9B411F #3B9B1F #1F799B
split-complementary
#7F1F9B #799B1F #1F9B41
monochromatic
#2B0B35 #551568 #7F1F9B #A929CE #BF57DD

Accessibility & contrast

On white

8.17
#7F1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F9B
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F9B#FFFFFF#000000##FFFFFF
##7F1F9B1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#215298
Tritanopia (blue-blind)
#7D3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1f9b;
/* rgb */ color: rgb(127, 31, 155);
/* oklch */ color: oklch(45.4% 0.194 317.0);
Tailwind
colors: {
  custom: {
    50: '#a867b9',
    500: '#7f1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f9b;
$custom-light: #a867b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f9b",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 286.452,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45386,
    "c": 0.19399,
    "h": 317
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#7F1F9B
secondary
#6DC155
accent
#EA3E65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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