#7F31BF#7F31BF

#7F31BF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.209 H 304.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7F31BF
RGBrgb(127, 49, 191)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 75%)
CMYKcmyk(33.5%, 74.3%, 0%, 25.1%)
CIE-LABlab(38.67, 57.98, -60.33)
CIE-LCHlch(38.67, 83.67, 313.86°)
OKLaboklab(49.74% 0.1193 -0.1717)
OKLCHoklch(49.74% 0.209 304.8)
XYZxyz(19.2525, 10.4703, 50.2868)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31BF #71BF31
analogous
#3831BF #7F31BF #BF31B8
triadic
#7F31BF #BF7F31 #31BF7F
tetradic
#7F31BF #BF3831 #71BF31 #31B8BF
square
#7F31BF #BF3831 #71BF31 #31B8BF
split-complementary
#7F31BF #B8BF31 #31BF38
monochromatic
#3E185E #5F258E #7F31BF #9D59D4 #BA8AE1

Accessibility & contrast

On white

6.79
#7F31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31BF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31BF#FFFFFF#000000##FFFFFF
##7F31BF1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#735476
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f31bf;
/* rgb */ color: rgb(127, 49, 191);
/* oklch */ color: oklch(49.7% 0.209 304.8);
Tailwind
colors: {
  custom: {
    50: '#aa71d3',
    500: '#7f31bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f31bf;
$custom-light: #aa71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31bf",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 272.958,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49736,
    "c": 0.20907,
    "h": 304.8
  },
  "luminance": 0.1047
}

Semantic roles & 50–950 ramp

primary
#7F31BF
secondary
#A2CB81
accent
#E2458C
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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