#7F31B9#7F31B9

#7F31B9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.203 H 306.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7F31B9
RGBrgb(127, 49, 185)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(31.4%, 73.5%, 0%, 27.5%)
CIE-LABlab(38.22, 56.61, -57.54)
CIE-LCHlch(38.22, 80.72, 314.53°)
OKLaboklab(49.27% 0.1204 -0.1635)
OKLCHoklch(49.27% 0.203 306.4)
XYZxyz(18.6058, 10.2116, 46.8804)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31B9 #6BB931
analogous
#3B31B9 #7F31B9 #B931AF
triadic
#7F31B9 #B97F31 #31B97F
tetradic
#7F31B9 #B93B31 #6BB931 #31AFB9
square
#7F31B9 #B93B31 #6BB931 #31AFB9
split-complementary
#7F31B9 #AFB931 #31B93B
monochromatic
#3D1758 #5E2489 #7F31B9 #9D55D2 #B986DF

Accessibility & contrast

On white

6.90
#7F31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7F31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31B9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31B9#FFFFFF#000000##FFFFFF
##7F31B91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#755272
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f31b9;
/* rgb */ color: rgb(127, 49, 185);
/* oklch */ color: oklch(49.3% 0.203 306.4);
Tailwind
colors: {
  custom: {
    50: '#a971cf',
    500: '#7f31b9',
    950: '#000000',
  },
}
SCSS
$custom: #7f31b9;
$custom-light: #a971cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31b9",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 274.412,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49273,
    "c": 0.20308,
    "h": 306.4
  },
  "luminance": 0.10211
}

Semantic roles & 50–950 ramp

primary
#7F31B9
secondary
#9DC87D
accent
#E14689
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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