#7F3DC0#7F3DC0

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

Color values

HEX#7F3DC0
RGBrgb(127, 61, 192)
HSLhsl(270, 52%, 50%)
HSVhsv(270, 68%, 75%)
CMYKcmyk(33.9%, 68.2%, 0%, 24.7%)
CIE-LABlab(40.66, 52.83, -57.69)
CIE-LCHlch(40.66, 78.22, 312.48°)
OKLaboklab(51.17% 0.1071 -0.164)
OKLCHoklch(51.17% 0.196 303.2)
XYZxyz(19.9334, 11.6553, 51.0585)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DC0 #7EC03D
analogous
#3D3DC0 #7F3DC0 #C03DC0
triadic
#7F3DC0 #C07F3D #3DC07F
tetradic
#7F3DC0 #C03D3D #7EC03D #3DC0C0
square
#7F3DC0 #C03D3D #7EC03D #3DC0C0
split-complementary
#7F3DC0 #C0C03D #3DC03D
monochromatic
#421F63 #602E92 #7F3DC0 #9D6AD0 #BC99DF

Accessibility & contrast

On white

6.30
#7F3DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F3DC0
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DC0#FFFFFF#000000##FFFFFF
##7F3DC01.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f3dc0;
/* rgb */ color: rgb(127, 61, 192);
/* oklch */ color: oklch(51.2% 0.196 303.2);
Tailwind
colors: {
  custom: {
    50: '#a977d4',
    500: '#7f3dc0',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dc0;
$custom-light: #a977d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dc0",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 192
  },
  "hsl": {
    "h": 270.229,
    "s": 51.779,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51173,
    "c": 0.19592,
    "h": 303.2
  },
  "luminance": 0.11655
}

Semantic roles & 50–950 ramp

primary
#7F3DC0
secondary
#ACCA8E
accent
#DB4D93
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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