#7F5BFA#7F5BFA

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

Color values

HEX#7F5BFA
RGBrgb(127, 91, 250)
HSLhsl(254, 94%, 67%)
HSVhsv(254, 64%, 98%)
CMYKcmyk(49.2%, 63.6%, 0%, 2%)
CIE-LABlab(50.56, 52.55, -74.66)
CIE-LCHlch(50.56, 91.29, 305.14°)
OKLaboklab(59.63% 0.0695 -0.214)
OKLCHoklch(59.63% 0.225 288)
XYZxyz(29.7438, 18.8950, 92.5038)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BFA #D6FA5B
analogous
#5B87FA #7F5BFA #CF5BFA
triadic
#7F5BFA #FA7F5B #5BFA7F
tetradic
#7F5BFA #FA5B87 #D6FA5B #5BFACF
square
#7F5BFA #FA5B87 #D6FA5B #5BFACF
split-complementary
#7F5BFA #FACF5B #87FA5B
monochromatic
#3506D4 #5120F8 #7F5BFA #AD96FC #DCD2FE

Accessibility & contrast

On white

4.39
#7F5BFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7F5BFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5BFA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BFA#FFFFFF#000000##000000
##7F5BFA1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5bfa;
/* rgb */ color: rgb(127, 91, 250);
/* oklch */ color: oklch(59.6% 0.225 288.0);
Tailwind
colors: {
  custom: {
    50: '#ad8bfd',
    500: '#7f5bfa',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bfa;
$custom-light: #ad8bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bfa",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 250
  },
  "hsl": {
    "h": 253.585,
    "s": 94.083,
    "l": 66.863
  },
  "oklch": {
    "l": 0.5963,
    "c": 0.22499,
    "h": 288
  },
  "luminance": 0.18896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F5BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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