#7F31B3#7F31B3

#7F31B3 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.197 H 308.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7F31B3
RGBrgb(127, 49, 179)
HSLhsl(276, 57%, 45%)
HSVhsv(276, 73%, 70%)
CMYKcmyk(29.1%, 72.6%, 0%, 29.8%)
CIE-LABlab(37.78, 55.26, -54.71)
CIE-LCHlch(37.78, 77.76, 315.28°)
OKLaboklab(48.82% 0.1215 -0.1552)
OKLCHoklch(48.82% 0.197 308)
XYZxyz(17.9857, 9.9636, 43.6148)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31B3 #65B331
analogous
#3E31B3 #7F31B3 #B331A6
triadic
#7F31B3 #B37F31 #31B37F
tetradic
#7F31B3 #B33E31 #65B331 #31A6B3
square
#7F31B3 #B33E31 #65B331 #31A6B3
split-complementary
#7F31B3 #A6B331 #31B33E
monochromatic
#3B1753 #5D2483 #7F31B3 #9D52D0 #B882DD

Accessibility & contrast

On white

7.02
#7F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F31B3
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31B3#FFFFFF#000000##FFFFFF
##7F31B31.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#055AB0
Tritanopia (blue-blind)
#774F6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f31b3;
/* rgb */ color: rgb(127, 49, 179);
/* oklch */ color: oklch(48.8% 0.197 308.0);
Tailwind
colors: {
  custom: {
    50: '#a970cb',
    500: '#7f31b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f31b3;
$custom-light: #a970cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31b3",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 276,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48821,
    "c": 0.19709,
    "h": 308
  },
  "luminance": 0.09963
}

Semantic roles & 50–950 ramp

primary
#7F31B3
secondary
#98C67A
accent
#E04885
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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