#7F54E4#7F54E4

#7F54E4 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.208 H 292.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7F54E4
RGBrgb(127, 84, 228)
HSLhsl(258, 73%, 61%)
HSVhsv(258, 63%, 89%)
CMYKcmyk(44.3%, 63.2%, 0%, 10.6%)
CIE-LABlab(47.56, 50.27, -67.19)
CIE-LCHlch(47.56, 83.91, 306.80°)
OKLaboklab(56.96% 0.0787 -0.192)
OKLCHoklch(56.96% 0.208 292.3)
XYZxyz(25.9224, 16.4533, 75.1937)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54E4 #B9E454
analogous
#5471E4 #7F54E4 #C754E4
triadic
#7F54E4 #E47F54 #54E47F
tetradic
#7F54E4 #E45471 #B9E454 #54E4C7
square
#7F54E4 #E45471 #B9E454 #54E4C7
split-complementary
#7F54E4 #E4C754 #71E454
monochromatic
#431AA4 #5922D9 #7F54E4 #A789EC #CEBEF5

Accessibility & contrast

On white

4.89
#7F54E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7F54E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54E4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54E4#FFFFFF#000000##FFFFFF
##7F54E41.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#006EE1
Tritanopia (blue-blind)
#627694
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f54e4;
/* rgb */ color: rgb(127, 84, 228);
/* oklch */ color: oklch(57.0% 0.208 292.3);
Tailwind
colors: {
  custom: {
    50: '#ab86ed',
    500: '#7f54e4',
    950: '#000000',
  },
}
SCSS
$custom: #7f54e4;
$custom-light: #ab86ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54e4",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 257.917,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56956,
    "c": 0.20751,
    "h": 292.3
  },
  "luminance": 0.16454
}

Semantic roles & 50–950 ramp

primary
#7F54E4
secondary
#D5E5AF
accent
#D5119A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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