#7F4EF5#7F4EF5

#7F4EF5 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.234 H 290.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7F4EF5
RGBrgb(127, 78, 245)
HSLhsl(258, 89%, 63%)
HSVhsv(258, 68%, 96%)
CMYKcmyk(48.2%, 68.2%, 0%, 3.9%)
CIE-LABlab(47.69, 57.98, -76.55)
CIE-LCHlch(47.69, 96.03, 307.14°)
OKLaboklab(57.45% 0.0823 -0.2195)
OKLCHoklch(57.45% 0.234 290.5)
XYZxyz(27.9535, 16.5523, 88.0905)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EF5 #C4F54E
analogous
#4E70F5 #7F4EF5 #D34EF5
triadic
#7F4EF5 #F57F4E #4EF57F
tetradic
#7F4EF5 #F54E70 #C4F54E #4EF5D3
square
#7F4EF5 #F54E70 #C4F54E #4EF5D3
split-complementary
#7F4EF5 #F5D34E #70F54E
monochromatic
#3F0BBE #5514F2 #7F4EF5 #A988F8 #D3C2FC

Accessibility & contrast

On white

4.87
#7F4EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7F4EF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EF5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EF5#FFFFFF#000000##FFFFFF
##7F4EF51.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FA
Deuteranopia (green-blind)
#006DF2
Tritanopia (blue-blind)
#58789C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f4ef5;
/* rgb */ color: rgb(127, 78, 245);
/* oklch */ color: oklch(57.4% 0.234 290.5);
Tailwind
colors: {
  custom: {
    50: '#ad83fa',
    500: '#7f4ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ef5;
$custom-light: #ad83fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ef5",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 245
  },
  "hsl": {
    "h": 257.605,
    "s": 89.305,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57445,
    "c": 0.23444,
    "h": 290.5
  },
  "luminance": 0.16553
}

Semantic roles & 50–950 ramp

primary
#7F4EF5
secondary
#DCEDB2
accent
#E600A2
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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