#7E54F1#7E54F1

#7E54F1 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.223 H 289.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7E54F1
RGBrgb(126, 84, 241)
HSLhsl(256, 85%, 64%)
HSVhsv(256, 65%, 95%)
CMYKcmyk(47.7%, 65.1%, 0%, 5.5%)
CIE-LABlab(48.42, 53.62, -73.13)
CIE-LCHlch(48.42, 90.68, 306.25°)
OKLaboklab(57.85% 0.0759 -0.2095)
OKLCHoklch(57.85% 0.223 289.9)
XYZxyz(27.6472, 17.1260, 85.0510)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54F1 #C7F154
analogous
#5478F1 #7E54F1 #CC54F1
triadic
#7E54F1 #F17E54 #54F17E
tetradic
#7E54F1 #F15478 #C7F154 #54F1CC
square
#7E54F1 #F15478 #C7F154 #54F1CC
split-complementary
#7E54F1 #F1CC54 #78F154
monochromatic
#3D0FBB #531BEC #7E54F1 #A98DF6 #D3C5FA

Accessibility & contrast

On white

4.75
#7E54F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7E54F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54F1
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54F1#FFFFFF#000000##FFFFFF
##7E54F11.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#006FEE
Tritanopia (blue-blind)
#587A9B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e54f1;
/* rgb */ color: rgb(126, 84, 241);
/* oklch */ color: oklch(57.8% 0.223 289.9);
Tailwind
colors: {
  custom: {
    50: '#ac87f7',
    500: '#7e54f1',
    950: '#000000',
  },
}
SCSS
$custom: #7e54f1;
$custom-light: #ac87f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54f1",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 256.051,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57849,
    "c": 0.22284,
    "h": 289.9
  },
  "luminance": 0.17127
}

Semantic roles & 50–950 ramp

primary
#7E54F1
secondary
#DDECB5
accent
#E104A6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E54F1

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

Preview Lab → · Contrast checker → · Palette generator →

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