#7F5CE0#7F5CE0

#7F5CE0 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.9% C 0.192 H 291.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE0
RGBrgb(127, 92, 224)
HSLhsl(256, 68%, 62%)
HSVhsv(256, 59%, 88%)
CMYKcmyk(43.3%, 58.9%, 0%, 12.2%)
CIE-LABlab(48.94, 44.78, -62.69)
CIE-LCHlch(48.94, 77.04, 305.54°)
OKLaboklab(57.87% 0.0703 -0.1788)
OKLCHoklch(57.87% 0.192 291.4)
XYZxyz(26.0304, 17.5473, 72.5220)
Luminance0.1755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE0 #BDE05C
analogous
#5C7BE0 #7F5CE0 #C15CE0
triadic
#7F5CE0 #E07F5C #5CE07F
tetradic
#7F5CE0 #E05C7B #BDE05C #5CE0C1
square
#7F5CE0 #E05C7B #BDE05C #5CE0C1
split-complementary
#7F5CE0 #E0C15C #7BE05C
monochromatic
#421FA3 #5729D6 #7F5CE0 #A78FEA #D0C3F4

Accessibility & contrast

On white

4.66
#7F5CE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7F5CE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CE0
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE0#FFFFFF#000000##FFFFFF
##7F5CE01.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E4
Deuteranopia (green-blind)
#0072DD
Tritanopia (blue-blind)
#637A95
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5ce0;
/* rgb */ color: rgb(127, 92, 224);
/* oklch */ color: oklch(57.9% 0.192 291.4);
Tailwind
colors: {
  custom: {
    50: '#aa8bea',
    500: '#7f5ce0',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce0;
$custom-light: #aa8bea;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce0",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 224
  },
  "hsl": {
    "h": 255.909,
    "s": 68.041,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57873,
    "c": 0.19211,
    "h": 291.4
  },
  "luminance": 0.17548
}

Semantic roles & 50–950 ramp

primary
#7F5CE0
secondary
#D7E4B4
accent
#D0169F
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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