#7F5BF5#7F5BF5

#7F5BF5 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.3% C 0.219 H 288.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7F5BF5
RGBrgb(127, 91, 245)
HSLhsl(254, 89%, 66%)
HSVhsv(254, 63%, 96%)
CMYKcmyk(48.2%, 62.9%, 0%, 3.9%)
CIE-LABlab(50.20, 51.15, -72.46)
CIE-LCHlch(50.20, 88.70, 305.22°)
OKLaboklab(59.25% 0.07 -0.2075)
OKLCHoklch(59.25% 0.219 288.6)
XYZxyz(28.9702, 18.5855, 88.4294)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BF5 #D1F55B
analogous
#5B84F5 #7F5BF5 #CC5BF5
triadic
#7F5BF5 #F57F5B #5BF57F
tetradic
#7F5BF5 #F55B84 #D1F55B #5BF5CC
square
#7F5BF5 #F55B84 #D1F55B #5BF5CC
split-complementary
#7F5BF5 #F5CC5B #84F55B
monochromatic
#380CC9 #5221F1 #7F5BF5 #AC95F9 #D9CEFC

Accessibility & contrast

On white

4.45
#7F5BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7F5BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5BF5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BF5#FFFFFF#000000##000000
##7F5BF51.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#5780A0
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5bf5;
/* rgb */ color: rgb(127, 91, 245);
/* oklch */ color: oklch(59.3% 0.219 288.6);
Tailwind
colors: {
  custom: {
    50: '#ad8bf9',
    500: '#7f5bf5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bf5;
$custom-light: #ad8bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bf5",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 245
  },
  "hsl": {
    "h": 254.026,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59251,
    "c": 0.21902,
    "h": 288.6
  },
  "luminance": 0.18587
}

Semantic roles & 50–950 ramp

primary
#7F5BF5
secondary
#E3EFBC
accent
#E500B0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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