#7F3CD7#7F3CD7

#7F3CD7 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.222 H 298.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7F3CD7
RGBrgb(127, 60, 215)
HSLhsl(266, 66%, 54%)
HSVhsv(266, 72%, 84%)
CMYKcmyk(40.9%, 72.1%, 0%, 15.7%)
CIE-LABlab(42.23, 58.91, -68.46)
CIE-LCHlch(42.23, 90.31, 310.71°)
OKLaboklab(52.83% 0.1042 -0.1957)
OKLCHoklch(52.83% 0.222 298)
XYZxyz(22.6308, 12.6497, 65.5261)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CD7 #94D73C
analogous
#3C47D7 #7F3CD7 #CC3CD7
triadic
#7F3CD7 #D77F3C #3CD77F
tetradic
#7F3CD7 #D73C47 #94D73C #3CD7CC
square
#7F3CD7 #D73C47 #94D73C #3CD7CC
split-complementary
#7F3CD7 #D7CC3C #47D73C
monochromatic
#451A7F #6124B1 #7F3CD7 #A06FE1 #C2A2EC

Accessibility & contrast

On white

5.95
#7F3CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7F3CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CD7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CD7#FFFFFF#000000##FFFFFF
##7F3CD71.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#696386
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f3cd7;
/* rgb */ color: rgb(127, 60, 215);
/* oklch */ color: oklch(52.8% 0.222 298.0);
Tailwind
colors: {
  custom: {
    50: '#ab78e4',
    500: '#7f3cd7',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cd7;
$custom-light: #ab78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cd7",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 215
  },
  "hsl": {
    "h": 265.935,
    "s": 65.957,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52831,
    "c": 0.2217,
    "h": 298
  },
  "luminance": 0.1265
}

Semantic roles & 50–950 ramp

primary
#7F3CD7
secondary
#BCD896
accent
#E93F9F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7F3CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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