#7F5EF1#7F5EF1

#7F5EF1 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.4% C 0.210 H 288.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7F5EF1
RGBrgb(127, 94, 241)
HSLhsl(253, 84%, 66%)
HSVhsv(253, 61%, 95%)
CMYKcmyk(47.3%, 61%, 0%, 5.5%)
CIE-LABlab(50.53, 48.39, -69.69)
CIE-LCHlch(50.53, 84.84, 304.77°)
OKLaboklab(59.4% 0.0673 -0.1994)
OKLCHoklch(59.4% 0.21 288.6)
XYZxyz(28.6277, 18.8671, 85.3353)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EF1 #D0F15E
analogous
#5E86F1 #7F5EF1 #C85EF1
triadic
#7F5EF1 #F17F5E #5EF17F
tetradic
#7F5EF1 #F15E86 #D0F15E #5EF1C8
square
#7F5EF1 #F15E86 #D0F15E #5EF1C8
split-complementary
#7F5EF1 #F1C85E #86F15E
monochromatic
#3911C4 #5226EC #7F5EF1 #AC96F6 #D9CFFB

Accessibility & contrast

On white

4.40
#7F5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7F5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EF1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EF1#FFFFFF#000000##000000
##7F5EF11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF6
Deuteranopia (green-blind)
#0075EE
Tritanopia (blue-blind)
#59809F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5ef1;
/* rgb */ color: rgb(127, 94, 241);
/* oklch */ color: oklch(59.4% 0.210 288.6);
Tailwind
colors: {
  custom: {
    50: '#ac8df7',
    500: '#7f5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ef1;
$custom-light: #ac8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ef1",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 253.469,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59403,
    "c": 0.21042,
    "h": 288.6
  },
  "luminance": 0.18868
}

Semantic roles & 50–950 ramp

primary
#7F5EF1
secondary
#E3EEBD
accent
#E005AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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