#7F3DC3#7F3DC3

#7F3DC3 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.199 H 302.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7F3DC3
RGBrgb(127, 61, 195)
HSLhsl(270, 53%, 50%)
HSVhsv(270, 69%, 76%)
CMYKcmyk(34.9%, 68.7%, 0%, 23.5%)
CIE-LABlab(40.88, 53.55, -59.09)
CIE-LCHlch(40.88, 79.74, 312.19°)
OKLaboklab(51.4% 0.1067 -0.1681)
OKLCHoklch(51.4% 0.199 302.4)
XYZxyz(20.2691, 11.7896, 52.8270)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DC3 #81C33D
analogous
#3D3EC3 #7F3DC3 #C23DC3
triadic
#7F3DC3 #C37F3D #3DC37F
tetradic
#7F3DC3 #C33D3E #81C33D #3DC3C2
square
#7F3DC3 #C33D3E #81C33D #3DC3C2
split-complementary
#7F3DC3 #C3C23D #3EC33D
monochromatic
#422066 #612E95 #7F3DC3 #9E6CD1 #BD9AE0

Accessibility & contrast

On white

6.25
#7F3DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7F3DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DC3
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DC3#FFFFFF#000000##FFFFFF
##7F3DC31.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#715C7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3dc3;
/* rgb */ color: rgb(127, 61, 195);
/* oklch */ color: oklch(51.4% 0.199 302.4);
Tailwind
colors: {
  custom: {
    50: '#a977d6',
    500: '#7f3dc3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dc3;
$custom-light: #a977d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dc3",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 195
  },
  "hsl": {
    "h": 269.552,
    "s": 52.756,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51396,
    "c": 0.19915,
    "h": 302.4
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#7F3DC3
secondary
#AECC90
accent
#DC4C95
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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