#7F31B5#7F31B5

#7F31B5 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 49.0% C 0.199 H 307.5°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7F31B5
RGBrgb(127, 49, 181)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 73%, 71%)
CMYKcmyk(29.8%, 72.9%, 0%, 29%)
CIE-LABlab(37.92, 55.71, -55.66)
CIE-LCHlch(37.92, 78.75, 315.03°)
OKLaboklab(48.97% 0.1211 -0.158)
OKLCHoklch(48.97% 0.199 307.5)
XYZxyz(18.1894, 10.0451, 44.6878)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31B5 #67B531
analogous
#3D31B5 #7F31B5 #B531A9
triadic
#7F31B5 #B57F31 #31B57F
tetradic
#7F31B5 #B53D31 #67B531 #31A9B5
square
#7F31B5 #B53D31 #67B531 #31A9B5
split-complementary
#7F31B5 #A9B531 #31B53D
monochromatic
#3B1755 #5D2485 #7F31B5 #9D53D0 #B883DD

Accessibility & contrast

On white

6.98
#7F31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31B5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31B5#FFFFFF#000000##FFFFFF
##7F31B51.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#765070
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f31b5;
/* rgb */ color: rgb(127, 49, 181);
/* oklch */ color: oklch(49.0% 0.199 307.5);
Tailwind
colors: {
  custom: {
    50: '#a970cc',
    500: '#7f31b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f31b5;
$custom-light: #a970cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31b5",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 275.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4897,
    "c": 0.19909,
    "h": 307.5
  },
  "luminance": 0.10045
}

Semantic roles & 50–950 ramp

primary
#7F31B5
secondary
#9AC77B
accent
#E14786
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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