#7F5BE4#7F5BE4

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

Color values

HEX#7F5BE4
RGBrgb(127, 91, 228)
HSLhsl(256, 72%, 63%)
HSVhsv(256, 60%, 89%)
CMYKcmyk(44.3%, 60.1%, 0%, 10.6%)
CIE-LABlab(49.00, 46.44, -64.86)
CIE-LCHlch(49.00, 79.77, 305.60°)
OKLaboklab(58% 0.0712 -0.1852)
OKLCHoklch(58% 0.198 291)
XYZxyz(26.4932, 17.5947, 75.3840)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BE4 #C0E45B
analogous
#5B7CE4 #7F5BE4 #C35BE4
triadic
#7F5BE4 #E47F5B #5BE47F
tetradic
#7F5BE4 #E45B7C #C0E45B #5BE4C3
square
#7F5BE4 #E45B7C #C0E45B #5BE4C3
split-complementary
#7F5BE4 #E4C35B #7CE45B
monochromatic
#411CA9 #5626DB #7F5BE4 #A890ED #D1C4F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5BE4#FFFFFF#000000##FFFFFF
##7F5BE41.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)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#617A97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5be4;
/* rgb */ color: rgb(127, 91, 228);
/* oklch */ color: oklch(58.0% 0.198 291.0);
Tailwind
colors: {
  custom: {
    50: '#ab8bed',
    500: '#7f5be4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5be4;
$custom-light: #ab8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5be4",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 228
  },
  "hsl": {
    "h": 255.766,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58001,
    "c": 0.19839,
    "h": 291
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#7F5BE4
secondary
#D9E6B4
accent
#D412A1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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