#7F3ED1#7F3ED1

#7F3ED1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.213 H 299.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7F3ED1
RGBrgb(127, 62, 209)
HSLhsl(267, 62%, 53%)
HSVhsv(267, 70%, 82%)
CMYKcmyk(39.2%, 70.3%, 0%, 18%)
CIE-LABlab(42.09, 56.50, -65.23)
CIE-LCHlch(42.09, 86.30, 310.90°)
OKLaboklab(52.59% 0.1035 -0.1862)
OKLCHoklch(52.59% 0.213 299.1)
XYZxyz(21.9807, 12.5604, 61.5756)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3ED1 #90D13E
analogous
#3E46D1 #7F3ED1 #C93ED1
triadic
#7F3ED1 #D17F3E #3ED17F
tetradic
#7F3ED1 #D13E46 #90D13E #3ED1C9
square
#7F3ED1 #D13E46 #90D13E #3ED1C9
split-complementary
#7F3ED1 #D1C93E #46D13E
monochromatic
#451D78 #6128A9 #7F3ED1 #A06FDD #C1A1E9

Accessibility & contrast

On white

5.98
#7F3ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F3ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3ED1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3ED1#FFFFFF#000000##FFFFFF
##7F3ED11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#0062CE
Tritanopia (blue-blind)
#6C6283
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f3ed1;
/* rgb */ color: rgb(127, 62, 209);
/* oklch */ color: oklch(52.6% 0.213 299.1);
Tailwind
colors: {
  custom: {
    50: '#ab78e0',
    500: '#7f3ed1',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ed1;
$custom-light: #ab78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ed1",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 209
  },
  "hsl": {
    "h": 266.531,
    "s": 61.506,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.21303,
    "h": 299.1
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#7F3ED1
secondary
#B9D596
accent
#E5439D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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