#7F3DC2#7F3DC2

#7F3DC2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.198 H 302.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F3DC2
RGBrgb(127, 61, 194)
HSLhsl(270, 52%, 50%)
HSVhsv(270, 69%, 76%)
CMYKcmyk(34.5%, 68.6%, 0%, 23.9%)
CIE-LABlab(40.81, 53.31, -58.62)
CIE-LCHlch(40.81, 79.24, 312.28°)
OKLaboklab(51.32% 0.1069 -0.1668)
OKLCHoklch(51.32% 0.198 302.7)
XYZxyz(20.1565, 11.7445, 52.2335)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DC2 #80C23D
analogous
#3D3EC2 #7F3DC2 #C13DC2
triadic
#7F3DC2 #C27F3D #3DC27F
tetradic
#7F3DC2 #C23D3E #80C23D #3DC2C1
square
#7F3DC2 #C23D3E #80C23D #3DC2C1
split-complementary
#7F3DC2 #C2C13D #3EC23D
monochromatic
#422065 #612E93 #7F3DC2 #9E6CD1 #BC9ADF

Accessibility & contrast

On white

6.27
#7F3DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F3DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DC2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DC2#FFFFFF#000000##FFFFFF
##7F3DC21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f3dc2;
/* rgb */ color: rgb(127, 61, 194);
/* oklch */ color: oklch(51.3% 0.198 302.7);
Tailwind
colors: {
  custom: {
    50: '#a977d5',
    500: '#7f3dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dc2;
$custom-light: #a977d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dc2",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 269.774,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.19807,
    "h": 302.7
  },
  "luminance": 0.11745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F3DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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