#7F5CE4#7F5CE4

#7F5CE4 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.2% C 0.197 H 290.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE4
RGBrgb(127, 92, 228)
HSLhsl(255, 72%, 63%)
HSVhsv(255, 60%, 89%)
CMYKcmyk(44.3%, 59.6%, 0%, 10.6%)
CIE-LABlab(49.21, 45.88, -64.52)
CIE-LCHlch(49.21, 79.17, 305.42°)
OKLaboklab(58.16% 0.0701 -0.1842)
OKLCHoklch(58.16% 0.197 290.8)
XYZxyz(26.5792, 17.7669, 75.4127)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE4 #C1E45C
analogous
#5C7DE4 #7F5CE4 #C35CE4
triadic
#7F5CE4 #E47F5C #5CE47F
tetradic
#7F5CE4 #E45C7D #C1E45C #5CE4C3
square
#7F5CE4 #E45C7D #C1E45C #5CE4C3
split-complementary
#7F5CE4 #E4C35C #7DE45C
monochromatic
#401CAA #5627DB #7F5CE4 #A891ED #D1C5F5

Accessibility & contrast

On white

4.61
#7F5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7F5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CE4
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE4#FFFFFF#000000##FFFFFF
##7F5CE41.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#617B97
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5ce4;
/* rgb */ color: rgb(127, 92, 228);
/* oklch */ color: oklch(58.2% 0.197 290.8);
Tailwind
colors: {
  custom: {
    50: '#ab8bed',
    500: '#7f5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce4;
$custom-light: #ab8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce4",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 255.441,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58156,
    "c": 0.19706,
    "h": 290.8
  },
  "luminance": 0.17768
}

Semantic roles & 50–950 ramp

primary
#7F5CE4
secondary
#DAE7B5
accent
#D412A2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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