#7F3DC1#7F3DC1

#7F3DC1 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.197 H 302.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7F3DC1
RGBrgb(127, 61, 193)
HSLhsl(270, 52%, 50%)
HSVhsv(270, 68%, 76%)
CMYKcmyk(34.2%, 68.4%, 0%, 24.3%)
CIE-LABlab(40.73, 53.07, -58.15)
CIE-LCHlch(40.73, 78.73, 312.38°)
OKLaboklab(51.25% 0.107 -0.1654)
OKLCHoklch(51.25% 0.197 302.9)
XYZxyz(20.0445, 11.6998, 51.6440)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DC1 #7FC13D
analogous
#3D3DC1 #7F3DC1 #C13DC1
triadic
#7F3DC1 #C17F3D #3DC17F
tetradic
#7F3DC1 #C13D3D #7FC13D #3DC1C1
square
#7F3DC1 #C13D3D #7FC13D #3DC1C1
split-complementary
#7F3DC1 #C1C13D #3DC13D
monochromatic
#422064 #602E92 #7F3DC1 #9E6BD0 #BC99DF

Accessibility & contrast

On white

6.29
#7F3DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7F3DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DC1
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DC1#FFFFFF#000000##FFFFFF
##7F3DC11.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#725B7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3dc1;
/* rgb */ color: rgb(127, 61, 193);
/* oklch */ color: oklch(51.2% 0.197 302.9);
Tailwind
colors: {
  custom: {
    50: '#a977d5',
    500: '#7f3dc1',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dc1;
$custom-light: #a977d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dc1",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 193
  },
  "hsl": {
    "h": 270,
    "s": 51.969,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51247,
    "c": 0.197,
    "h": 302.9
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F3DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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