#7F3ED7#7F3ED7

#7F3ED7 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.219 H 297.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7F3ED7
RGBrgb(127, 62, 215)
HSLhsl(265, 66%, 54%)
HSVhsv(265, 71%, 84%)
CMYKcmyk(40.9%, 71.2%, 0%, 15.7%)
CIE-LABlab(42.56, 57.99, -67.93)
CIE-LCHlch(42.56, 89.31, 310.49°)
OKLaboklab(53.06% 0.1024 -0.1941)
OKLCHoklch(53.06% 0.219 297.8)
XYZxyz(22.7376, 12.8632, 65.5617)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3ED7 #96D73E
analogous
#3E4AD7 #7F3ED7 #CB3ED7
triadic
#7F3ED7 #D77F3E #3ED77F
tetradic
#7F3ED7 #D73E4A #96D73E #3ED7CB
square
#7F3ED7 #D73E4A #96D73E #3ED7CB
split-complementary
#7F3ED7 #D7CB3E #4AD73E
monochromatic
#461B80 #6125B3 #7F3ED7 #A171E2 #C2A3EC

Accessibility & contrast

On white

5.88
#7F3ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7F3ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3ED7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3ED7#FFFFFF#000000##FFFFFF
##7F3ED71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DB
Deuteranopia (green-blind)
#0063D4
Tritanopia (blue-blind)
#696487
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f3ed7;
/* rgb */ color: rgb(127, 62, 215);
/* oklch */ color: oklch(53.1% 0.219 297.8);
Tailwind
colors: {
  custom: {
    50: '#ab79e4',
    500: '#7f3ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ed7;
$custom-light: #ab79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ed7",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 215
  },
  "hsl": {
    "h": 265.49,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53062,
    "c": 0.21947,
    "h": 297.8
  },
  "luminance": 0.12864
}

Semantic roles & 50–950 ramp

primary
#7F3ED7
secondary
#BDD998
accent
#E93FA1
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7F3ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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