#7F5BE5#7F5BE5

#7F5BE5 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.1% C 0.200 H 290.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7F5BE5
RGBrgb(127, 91, 229)
HSLhsl(256, 73%, 63%)
HSVhsv(256, 60%, 90%)
CMYKcmyk(44.5%, 60.3%, 0%, 10.2%)
CIE-LABlab(49.07, 46.71, -65.31)
CIE-LCHlch(49.07, 80.30, 305.57°)
OKLaboklab(58.07% 0.0711 -0.1865)
OKLCHoklch(58.07% 0.2 290.9)
XYZxyz(26.6324, 17.6504, 76.1172)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BE5 #C1E55B
analogous
#5B7CE5 #7F5BE5 #C45BE5
triadic
#7F5BE5 #E57F5B #5BE57F
tetradic
#7F5BE5 #E55B7C #C1E55B #5BE5C4
square
#7F5BE5 #E55B7C #C1E55B #5BE5C4
split-complementary
#7F5BE5 #E5C45B #7CE55B
monochromatic
#401BAB #5626DD #7F5BE5 #A890ED #D1C5F6

Accessibility & contrast

On white

4.64
#7F5BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7F5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BE5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BE5#FFFFFF#000000##FFFFFF
##7F5BE51.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5be5;
/* rgb */ color: rgb(127, 91, 229);
/* oklch */ color: oklch(58.1% 0.200 290.9);
Tailwind
colors: {
  custom: {
    50: '#ab8bee',
    500: '#7f5be5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5be5;
$custom-light: #ab8bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5be5",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 255.652,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58073,
    "c": 0.19962,
    "h": 290.9
  },
  "luminance": 0.17651
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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