#7F31BA#7F31BA

#7F31BA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.204 H 306.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7F31BA
RGBrgb(127, 49, 186)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(31.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(38.29, 56.84, -58.01)
CIE-LCHlch(38.29, 81.21, 314.42°)
OKLaboklab(49.35% 0.1202 -0.1649)
OKLCHoklch(49.35% 0.204 306.1)
XYZxyz(18.7117, 10.2540, 47.4383)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31BA #6CBA31
analogous
#3B31BA #7F31BA #BA31B0
triadic
#7F31BA #BA7F31 #31BA7F
tetradic
#7F31BA #BA3B31 #6CBA31 #31B0BA
square
#7F31BA #BA3B31 #6CBA31 #31B0BA
split-complementary
#7F31BA #B0BA31 #31BA3B
monochromatic
#3D1759 #5E248A #7F31BA #9D56D2 #B986DF

Accessibility & contrast

On white

6.88
#7F31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31BA#FFFFFF#000000##FFFFFF
##7F31BA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#755273
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f31ba;
/* rgb */ color: rgb(127, 49, 186);
/* oklch */ color: oklch(49.4% 0.204 306.1);
Tailwind
colors: {
  custom: {
    50: '#a971d0',
    500: '#7f31ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f31ba;
$custom-light: #a971d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31ba",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 274.161,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4935,
    "c": 0.20408,
    "h": 306.1
  },
  "luminance": 0.10254
}

Semantic roles & 50–950 ramp

primary
#7F31BA
secondary
#9EC97E
accent
#E24689
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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