#7F5DE6#7F5DE6

#7F5DE6 is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.5% C 0.198 H 290.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5DE6
RGBrgb(127, 93, 230)
HSLhsl(255, 73%, 63%)
HSVhsv(255, 60%, 90%)
CMYKcmyk(44.8%, 59.6%, 0%, 9.8%)
CIE-LABlab(49.56, 45.88, -65.08)
CIE-LCHlch(49.56, 79.63, 305.18°)
OKLaboklab(58.45% 0.0689 -0.1858)
OKLCHoklch(58.45% 0.198 290.4)
XYZxyz(26.9457, 18.0529, 76.9124)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DE6 #C4E65D
analogous
#5D7FE6 #7F5DE6 #C45DE6
triadic
#7F5DE6 #E67F5D #5DE67F
tetradic
#7F5DE6 #E65D7F #C4E65D #5DE6C4
square
#7F5DE6 #E65D7F #C4E65D #5DE6C4
split-complementary
#7F5DE6 #E6C45D #7FE65D
monochromatic
#3F1BAE #5528DE #7F5DE6 #A992EE #D3C7F6

Accessibility & contrast

On white

4.55
#7F5DE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7F5DE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5DE6
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DE6#FFFFFF#000000##000000
##7F5DE61.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#0073E3
Tritanopia (blue-blind)
#607C99
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5de6;
/* rgb */ color: rgb(127, 93, 230);
/* oklch */ color: oklch(58.5% 0.198 290.4);
Tailwind
colors: {
  custom: {
    50: '#ab8cef',
    500: '#7f5de6',
    950: '#000000',
  },
}
SCSS
$custom: #7f5de6;
$custom-light: #ab8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5de6",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 230
  },
  "hsl": {
    "h": 254.891,
    "s": 73.262,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58453,
    "c": 0.1982,
    "h": 290.4
  },
  "luminance": 0.18054
}

Semantic roles & 50–950 ramp

primary
#7F5DE6
secondary
#DCE8B7
accent
#D510A4
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5DE6

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

Preview Lab → · Contrast checker → · Palette generator →

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