#7F5CE1#7F5CE1

#7F5CE1 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.9% C 0.193 H 291.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE1
RGBrgb(127, 92, 225)
HSLhsl(256, 69%, 62%)
HSVhsv(256, 59%, 88%)
CMYKcmyk(43.6%, 59.1%, 0%, 11.8%)
CIE-LABlab(49.01, 45.05, -63.15)
CIE-LCHlch(49.01, 77.57, 305.50°)
OKLaboklab(57.94% 0.0702 -0.1801)
OKLCHoklch(57.94% 0.193 291.3)
XYZxyz(26.1664, 17.6017, 73.2384)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE1 #BEE15C
analogous
#5C7CE1 #7F5CE1 #C15CE1
triadic
#7F5CE1 #E17F5C #5CE17F
tetradic
#7F5CE1 #E15C7C #BEE15C #5CE1C1
square
#7F5CE1 #E15C7C #BEE15C #5CE1C1
split-complementary
#7F5CE1 #E1C15C #7CE15C
monochromatic
#421EA4 #5628D7 #7F5CE1 #A890EB #D0C3F4

Accessibility & contrast

On white

4.65
#7F5CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7F5CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CE1
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE1#FFFFFF#000000##FFFFFF
##7F5CE11.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#637A96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5ce1;
/* rgb */ color: rgb(127, 92, 225);
/* oklch */ color: oklch(57.9% 0.193 291.3);
Tailwind
colors: {
  custom: {
    50: '#aa8beb',
    500: '#7f5ce1',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce1;
$custom-light: #aa8beb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce1",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 255.789,
    "s": 68.912,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57943,
    "c": 0.19335,
    "h": 291.3
  },
  "luminance": 0.17603
}

Semantic roles & 50–950 ramp

primary
#7F5CE1
secondary
#D8E5B4
accent
#D1159F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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