#7F5AFB#7F5AFB

#7F5AFB is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.6% C 0.227 H 288.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F5AFB
RGBrgb(127, 90, 251)
HSLhsl(254, 95%, 67%)
HSVhsv(254, 64%, 98%)
CMYKcmyk(49.4%, 64.1%, 0%, 1.6%)
CIE-LABlab(50.44, 53.36, -75.42)
CIE-LCHlch(50.44, 92.39, 305.28°)
OKLaboklab(59.56% 0.0704 -0.2162)
OKLCHoklch(59.56% 0.227 288)
XYZxyz(29.8161, 18.7880, 93.3035)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AFB #D6FB5A
analogous
#5A86FB #7F5AFB #D05AFB
triadic
#7F5AFB #FB7F5A #5AFB7F
tetradic
#7F5AFB #FB5A86 #D6FB5A #5AFBD0
square
#7F5AFB #FB5A86 #D6FB5A #5AFBD0
split-complementary
#7F5AFB #FBD05A #86FB5A
monochromatic
#3505D5 #511EFA #7F5AFB #AD96FC #DCD2FE

Accessibility & contrast

On white

4.41
#7F5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7F5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AFB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AFB#FFFFFF#000000##000000
##7F5AFB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0074F8
Tritanopia (blue-blind)
#5381A3
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5afb;
/* rgb */ color: rgb(127, 90, 251);
/* oklch */ color: oklch(59.6% 0.227 288.0);
Tailwind
colors: {
  custom: {
    50: '#ad8bfe',
    500: '#7f5afb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5afb;
$custom-light: #ad8bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5afb",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 253.789,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59563,
    "c": 0.22738,
    "h": 288
  },
  "luminance": 0.18789
}

Semantic roles & 50–950 ramp

primary
#7F5AFB
secondary
#E6F2BF
accent
#E600B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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