#7F5CEA#7F5CEA

#7F5CEA is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.6% C 0.204 H 290.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7F5CEA
RGBrgb(127, 92, 234)
HSLhsl(255, 77%, 64%)
HSVhsv(255, 61%, 92%)
CMYKcmyk(45.7%, 60.7%, 0%, 8.2%)
CIE-LABlab(49.62, 47.54, -67.23)
CIE-LCHlch(49.62, 82.34, 305.27°)
OKLaboklab(58.59% 0.0698 -0.1921)
OKLCHoklch(58.59% 0.204 290)
XYZxyz(27.4266, 18.1058, 79.8756)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CEA #C7EA5C
analogous
#5C80EA #7F5CEA #C65CEA
triadic
#7F5CEA #EA7F5C #5CEA7F
tetradic
#7F5CEA #EA5C80 #C7EA5C #5CEAC6
square
#7F5CEA #EA5C80 #C7EA5C #5CEAC6
split-complementary
#7F5CEA #EAC65C #80EA5C
monochromatic
#3E17B4 #5426E3 #7F5CEA #AA92F1 #D4C8F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5CEA#FFFFFF#000000##000000
##7F5CEA1.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)
#0079EF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#5E7D9A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5cea;
/* rgb */ color: rgb(127, 92, 234);
/* oklch */ color: oklch(58.6% 0.204 290.0);
Tailwind
colors: {
  custom: {
    50: '#ab8cf2',
    500: '#7f5cea',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cea;
$custom-light: #ab8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cea",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 254.789,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58587,
    "c": 0.20443,
    "h": 290
  },
  "luminance": 0.18107
}

Semantic roles & 50–950 ramp

primary
#7F5CEA
secondary
#DEEAB8
accent
#D90CA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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