#7F31BC#7F31BC

#7F31BC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.206 H 305.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7F31BC
RGBrgb(127, 49, 188)
HSLhsl(274, 59%, 46%)
HSVhsv(274, 74%, 74%)
CMYKcmyk(32.4%, 73.9%, 0%, 26.3%)
CIE-LABlab(38.45, 57.30, -58.94)
CIE-LCHlch(38.45, 82.20, 314.19°)
OKLaboklab(49.5% 0.1199 -0.1676)
OKLCHoklch(49.5% 0.206 305.6)
XYZxyz(18.9258, 10.3396, 48.5659)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31BC #6EBC31
analogous
#3A31BC #7F31BC #BC31B4
triadic
#7F31BC #BC7F31 #31BC7F
tetradic
#7F31BC #BC3A31 #6EBC31 #31B4BC
square
#7F31BC #BC3A31 #6EBC31 #31B4BC
split-complementary
#7F31BC #B4BC31 #31BC3A
monochromatic
#3D185B #5E248B #7F31BC #9D57D3 #B988E0

Accessibility & contrast

On white

6.85
#7F31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7F31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31BC
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31BC#FFFFFF#000000##FFFFFF
##7F31BC1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#745374
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f31bc;
/* rgb */ color: rgb(127, 49, 188);
/* oklch */ color: oklch(49.5% 0.206 305.6);
Tailwind
colors: {
  custom: {
    50: '#a971d1',
    500: '#7f31bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f31bc;
$custom-light: #a971d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31bc",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 273.669,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49504,
    "c": 0.20608,
    "h": 305.6
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#7F31BC
secondary
#A0CA7F
accent
#E2468A
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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