#7F31B7#7F31B7

#7F31B7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.201 H 306.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7F31B7
RGBrgb(127, 49, 183)
HSLhsl(275, 58%, 45%)
HSVhsv(275, 73%, 72%)
CMYKcmyk(30.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(38.07, 56.16, -56.60)
CIE-LCHlch(38.07, 79.73, 314.78°)
OKLaboklab(49.12% 0.1208 -0.1608)
OKLCHoklch(49.12% 0.201 306.9)
XYZxyz(18.3961, 10.1278, 45.7763)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31B7 #69B731
analogous
#3C31B7 #7F31B7 #B731AC
triadic
#7F31B7 #B77F31 #31B77F
tetradic
#7F31B7 #B73C31 #69B731 #31ACB7
square
#7F31B7 #B73C31 #69B731 #31ACB7
split-complementary
#7F31B7 #ACB731 #31B73C
monochromatic
#3C1756 #5D2487 #7F31B7 #9D54D1 #B984DE

Accessibility & contrast

On white

6.94
#7F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7F31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31B7
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31B7#FFFFFF#000000##FFFFFF
##7F31B71.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#755171
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f31b7;
/* rgb */ color: rgb(127, 49, 183);
/* oklch */ color: oklch(49.1% 0.201 306.9);
Tailwind
colors: {
  custom: {
    50: '#a970cd',
    500: '#7f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f31b7;
$custom-light: #a970cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31b7",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 274.925,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49121,
    "c": 0.20108,
    "h": 306.9
  },
  "luminance": 0.10128
}

Semantic roles & 50–950 ramp

primary
#7F31B7
secondary
#9CC87C
accent
#E14787
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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