#7F5CE6#7F5CE6

#7F5CE6 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.3% C 0.200 H 290.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE6
RGBrgb(127, 92, 230)
HSLhsl(255, 73%, 63%)
HSVhsv(255, 60%, 90%)
CMYKcmyk(44.8%, 60%, 0%, 9.8%)
CIE-LABlab(49.35, 46.43, -65.43)
CIE-LCHlch(49.35, 80.23, 305.36°)
OKLaboklab(58.3% 0.07 -0.1868)
OKLCHoklch(58.3% 0.2 290.5)
XYZxyz(26.8585, 17.8785, 76.8833)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE6 #C3E65C
analogous
#5C7EE6 #7F5CE6 #C45CE6
triadic
#7F5CE6 #E67F5C #5CE67F
tetradic
#7F5CE6 #E65C7E #C3E65C #5CE6C4
square
#7F5CE6 #E65C7E #C3E65C #5CE6C4
split-complementary
#7F5CE6 #E6C45C #7EE65C
monochromatic
#401BAD #5527DE #7F5CE6 #A991EE #D2C6F6

Accessibility & contrast

On white

4.59
#7F5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7F5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CE6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE6#FFFFFF#000000##FFFFFF
##7F5CE61.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#607B98
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5ce6;
/* rgb */ color: rgb(127, 92, 230);
/* oklch */ color: oklch(58.3% 0.200 290.5);
Tailwind
colors: {
  custom: {
    50: '#ab8cef',
    500: '#7f5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce6;
$custom-light: #ab8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce6",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 255.217,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58299,
    "c": 0.19953,
    "h": 290.5
  },
  "luminance": 0.17879
}

Semantic roles & 50–950 ramp

primary
#7F5CE6
secondary
#DBE8B6
accent
#D610A3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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