#7F31BB#7F31BB

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

Color values

HEX#7F31BB
RGBrgb(127, 49, 187)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(32.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(38.37, 57.07, -58.47)
CIE-LCHlch(38.37, 81.71, 314.30°)
OKLaboklab(49.43% 0.12 -0.1663)
OKLCHoklch(49.43% 0.205 305.8)
XYZxyz(18.8184, 10.2967, 48.0002)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31BB #6DBB31
analogous
#3A31BB #7F31BB #BB31B2
triadic
#7F31BB #BB7F31 #31BB7F
tetradic
#7F31BB #BB3A31 #6DBB31 #31B2BB
square
#7F31BB #BB3A31 #6DBB31 #31B2BB
split-complementary
#7F31BB #B2BB31 #31BB3A
monochromatic
#3D185A #5E248B #7F31BB #9D56D3 #B987E0

Accessibility & contrast

On white

6.86
#7F31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7F31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31BB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31BB#FFFFFF#000000##FFFFFF
##7F31BB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#745274
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f31bb;
/* rgb */ color: rgb(127, 49, 187);
/* oklch */ color: oklch(49.4% 0.205 305.8);
Tailwind
colors: {
  custom: {
    50: '#a971d0',
    500: '#7f31bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f31bb;
$custom-light: #a971d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31bb",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 273.913,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49426,
    "c": 0.20507,
    "h": 305.8
  },
  "luminance": 0.10297
}

Semantic roles & 50–950 ramp

primary
#7F31BB
secondary
#9FC97F
accent
#E2468A
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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