#7F3CC2#7F3CC2

#7F3CC2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.2% C 0.199 H 302.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7F3CC2
RGBrgb(127, 60, 194)
HSLhsl(270, 53%, 50%)
HSVhsv(270, 69%, 76%)
CMYKcmyk(34.5%, 69.1%, 0%, 23.9%)
CIE-LABlab(40.64, 53.79, -58.90)
CIE-LCHlch(40.64, 79.76, 312.40°)
OKLaboklab(51.2% 0.1079 -0.1676)
OKLCHoklch(51.2% 0.199 302.8)
XYZxyz(20.1036, 11.6388, 52.2159)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CC2 #7FC23C
analogous
#3C3CC2 #7F3CC2 #C23CC2
triadic
#7F3CC2 #C27F3C #3CC27F
tetradic
#7F3CC2 #C23C3C #7FC23C #3CC2C2
square
#7F3CC2 #C23C3C #7FC23C #3CC2C2
split-complementary
#7F3CC2 #C2C23C #3CC23C
monochromatic
#421F65 #602E93 #7F3CC2 #9E6AD1 #BC99DF

Accessibility & contrast

On white

6.31
#7F3CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7F3CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CC2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CC2#FFFFFF#000000##FFFFFF
##7F3CC21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#715B7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3cc2;
/* rgb */ color: rgb(127, 60, 194);
/* oklch */ color: oklch(51.2% 0.199 302.8);
Tailwind
colors: {
  custom: {
    50: '#a977d5',
    500: '#7f3cc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cc2;
$custom-light: #a977d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cc2",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 52.756,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51199,
    "c": 0.19932,
    "h": 302.8
  },
  "luminance": 0.11639
}

Semantic roles & 50–950 ramp

primary
#7F3CC2
secondary
#ADCB8F
accent
#DC4C94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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