#7F31AF#7F31AF

#7F31AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.193 H 309.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7F31AF
RGBrgb(127, 49, 175)
HSLhsl(277, 56%, 44%)
HSVhsv(277, 72%, 69%)
CMYKcmyk(27.4%, 72%, 0%, 31.4%)
CIE-LABlab(37.49, 54.36, -52.80)
CIE-LCHlch(37.49, 75.79, 315.83°)
OKLaboklab(48.53% 0.1221 -0.1496)
OKLCHoklch(48.53% 0.193 309.2)
XYZxyz(17.5870, 9.8041, 41.5150)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31AF #61AF31
analogous
#4031AF #7F31AF #AF31A0
triadic
#7F31AF #AF7F31 #31AF7F
tetradic
#7F31AF #AF4031 #61AF31 #31A0AF
square
#7F31AF #AF4031 #61AF31 #31A0AF
split-complementary
#7F31AF #A0AF31 #31AF40
monochromatic
#3A164F #5C247F #7F31AF #9E4FCE #B87FDB

Accessibility & contrast

On white

7.09
#7F31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7F31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F31AF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31AF#FFFFFF#000000##FFFFFF
##7F31AF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#1359AC
Tritanopia (blue-blind)
#784E6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f31af;
/* rgb */ color: rgb(127, 49, 175);
/* oklch */ color: oklch(48.5% 0.193 309.2);
Tailwind
colors: {
  custom: {
    50: '#a970c8',
    500: '#7f31af',
    950: '#000000',
  },
}
SCSS
$custom: #7f31af;
$custom-light: #a970c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31af",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 277.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48525,
    "c": 0.1931,
    "h": 309.2
  },
  "luminance": 0.09804
}

Semantic roles & 50–950 ramp

primary
#7F31AF
secondary
#95C478
accent
#E04882
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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