#7F54E2#7F54E2

#7F54E2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.8% C 0.205 H 292.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7F54E2
RGBrgb(127, 84, 226)
HSLhsl(258, 71%, 61%)
HSVhsv(258, 63%, 89%)
CMYKcmyk(43.8%, 62.8%, 0%, 11.4%)
CIE-LABlab(47.42, 49.73, -66.29)
CIE-LCHlch(47.42, 82.87, 306.88°)
OKLaboklab(56.81% 0.0788 -0.1894)
OKLCHoklch(56.81% 0.205 292.6)
XYZxyz(25.6464, 16.3429, 73.7400)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54E2 #B7E254
analogous
#5470E2 #7F54E2 #C654E2
triadic
#7F54E2 #E27F54 #54E27F
tetradic
#7F54E2 #E25470 #B7E254 #54E2C6
square
#7F54E2 #E25470 #B7E254 #54E2C6
split-complementary
#7F54E2 #E2C654 #70E254
monochromatic
#441BA0 #5A24D5 #7F54E2 #A688EB #CDBDF4

Accessibility & contrast

On white

4.92
#7F54E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7F54E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54E2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54E2#FFFFFF#000000##FFFFFF
##7F54E21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#637593
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f54e2;
/* rgb */ color: rgb(127, 84, 226);
/* oklch */ color: oklch(56.8% 0.205 292.6);
Tailwind
colors: {
  custom: {
    50: '#ab86ec',
    500: '#7f54e2',
    950: '#000000',
  },
}
SCSS
$custom: #7f54e2;
$custom-light: #ab86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54e2",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 258.169,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56807,
    "c": 0.20513,
    "h": 292.6
  },
  "luminance": 0.16344
}

Semantic roles & 50–950 ramp

primary
#7F54E2
secondary
#D4E4AE
accent
#D31299
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F54E2

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

Preview Lab → · Contrast checker → · Palette generator →

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