#7F54E7#7F54E7

#7F54E7 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.2% C 0.211 H 291.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F54E7
RGBrgb(127, 84, 231)
HSLhsl(258, 75%, 62%)
HSVhsv(258, 64%, 91%)
CMYKcmyk(45%, 63.6%, 0%, 9.4%)
CIE-LABlab(47.78, 51.08, -68.53)
CIE-LCHlch(47.78, 85.48, 306.70°)
OKLaboklab(57.18% 0.0784 -0.196)
OKLCHoklch(57.18% 0.211 291.8)
XYZxyz(26.3425, 16.6213, 77.4061)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54E7 #BCE754
analogous
#5473E7 #7F54E7 #C954E7
triadic
#7F54E7 #E77F54 #54E77F
tetradic
#7F54E7 #E75473 #BCE754 #54E7C9
square
#7F54E7 #E75473 #BCE754 #54E7C9
split-complementary
#7F54E7 #E7C954 #73E754
monochromatic
#4218A9 #571FDF #7F54E7 #A78AEF #CFBFF6

Accessibility & contrast

On white

4.86
#7F54E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F54E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54E7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54E7#FFFFFF#000000##FFFFFF
##7F54E71.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#607796
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f54e7;
/* rgb */ color: rgb(127, 84, 231);
/* oklch */ color: oklch(57.2% 0.211 291.8);
Tailwind
colors: {
  custom: {
    50: '#ab86f0',
    500: '#7f54e7',
    950: '#000000',
  },
}
SCSS
$custom: #7f54e7;
$custom-light: #ab86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54e7",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 257.551,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5718,
    "c": 0.21107,
    "h": 291.8
  },
  "luminance": 0.16622
}

Semantic roles & 50–950 ramp

primary
#7F54E7
secondary
#D7E7B0
accent
#D80E9D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F54E7

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

Preview Lab → · Contrast checker → · Palette generator →

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