#7F5EE4#7F5EE4

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

Color values

HEX#7F5EE4
RGBrgb(127, 94, 228)
HSLhsl(255, 71%, 63%)
HSVhsv(255, 59%, 89%)
CMYKcmyk(44.3%, 58.8%, 0%, 10.6%)
CIE-LABlab(49.64, 44.76, -63.83)
CIE-LCHlch(49.64, 77.96, 305.04°)
OKLaboklab(58.47% 0.0679 -0.1821)
OKLCHoklch(58.47% 0.194 290.4)
XYZxyz(26.7548, 18.1179, 75.4712)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EE4 #C3E45E
analogous
#5E80E4 #7F5EE4 #C25EE4
triadic
#7F5EE4 #E47F5E #5EE47F
tetradic
#7F5EE4 #E45E80 #C3E45E #5EE4C2
square
#7F5EE4 #E45E80 #C3E45E #5EE4C2
split-complementary
#7F5EE4 #E4C25E #80E45E
monochromatic
#401DAB #552ADB #7F5EE4 #A992ED #D2C7F6

Accessibility & contrast

On white

4.54
#7F5EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7F5EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EE4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EE4#FFFFFF#000000##000000
##7F5EE41.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#617C98
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5ee4;
/* rgb */ color: rgb(127, 94, 228);
/* oklch */ color: oklch(58.5% 0.194 290.4);
Tailwind
colors: {
  custom: {
    50: '#ab8ded',
    500: '#7f5ee4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ee4;
$custom-light: #ab8ded;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ee4",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 228
  },
  "hsl": {
    "h": 254.776,
    "s": 71.277,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58468,
    "c": 0.19438,
    "h": 290.4
  },
  "luminance": 0.18119
}

Semantic roles & 50–950 ramp

primary
#7F5EE4
secondary
#DBE7B7
accent
#D312A4
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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