#7F5AFA#7F5AFA

#7F5AFA is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.5% C 0.226 H 288.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F5AFA
RGBrgb(127, 90, 250)
HSLhsl(254, 94%, 67%)
HSVhsv(254, 64%, 98%)
CMYKcmyk(49.2%, 64%, 0%, 2%)
CIE-LABlab(50.36, 53.09, -74.98)
CIE-LCHlch(50.36, 91.87, 305.30°)
OKLaboklab(59.49% 0.0705 -0.2149)
OKLCHoklch(59.49% 0.226 288.2)
XYZxyz(29.6589, 18.7252, 92.4755)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AFA #D5FA5A
analogous
#5A85FA #7F5AFA #CF5AFA
triadic
#7F5AFA #FA7F5A #5AFA7F
tetradic
#7F5AFA #FA5A85 #D5FA5A #5AFACF
square
#7F5AFA #FA5A85 #D5FA5A #5AFACF
split-complementary
#7F5AFA #FACF5A #85FA5A
monochromatic
#3606D3 #511FF8 #7F5AFA #AD95FC #DBD1FE

Accessibility & contrast

On white

4.43
#7F5AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7F5AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AFA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AFA#FFFFFF#000000##000000
##7F5AFA1.004.434.754.75
#FFFFFF4.431.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0074F7
Tritanopia (blue-blind)
#5481A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5afa;
/* rgb */ color: rgb(127, 90, 250);
/* oklch */ color: oklch(59.5% 0.226 288.2);
Tailwind
colors: {
  custom: {
    50: '#ad8bfd',
    500: '#7f5afa',
    950: '#000000',
  },
}
SCSS
$custom: #7f5afa;
$custom-light: #ad8bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5afa",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 250
  },
  "hsl": {
    "h": 253.875,
    "s": 94.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59486,
    "c": 0.2262,
    "h": 288.2
  },
  "luminance": 0.18726
}

Semantic roles & 50–950 ramp

primary
#7F5AFA
secondary
#E6F2BE
accent
#E600B0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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