#7F54EA#7F54EA

#7F54EA is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.4% C 0.215 H 291.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7F54EA
RGBrgb(127, 84, 234)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 64%, 92%)
CMYKcmyk(45.7%, 64.1%, 0%, 8.2%)
CIE-LABlab(48.00, 51.90, -69.87)
CIE-LCHlch(48.00, 87.04, 306.60°)
OKLaboklab(57.41% 0.0781 -0.1999)
OKLCHoklch(57.41% 0.215 291.3)
XYZxyz(26.7698, 16.7923, 79.6567)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54EA #BFEA54
analogous
#5474EA #7F54EA #CA54EA
triadic
#7F54EA #EA7F54 #54EA7F
tetradic
#7F54EA #EA5474 #BFEA54 #54EACA
square
#7F54EA #EA5474 #BFEA54 #54EACA
split-complementary
#7F54EA #EACA54 #74EA54
monochromatic
#4115AE #561DE3 #7F54EA #A88BF1 #D1C1F7

Accessibility & contrast

On white

4.82
#7F54EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7F54EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54EA
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54EA#FFFFFF#000000##FFFFFF
##7F54EA1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#006FE7
Tritanopia (blue-blind)
#5E7898
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f54ea;
/* rgb */ color: rgb(127, 84, 234);
/* oklch */ color: oklch(57.4% 0.215 291.3);
Tailwind
colors: {
  custom: {
    50: '#ac86f2',
    500: '#7f54ea',
    950: '#000000',
  },
}
SCSS
$custom: #7f54ea;
$custom-light: #ac86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54ea",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 257.2,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57406,
    "c": 0.21462,
    "h": 291.3
  },
  "luminance": 0.16793
}

Semantic roles & 50–950 ramp

primary
#7F54EA
secondary
#D9E8B2
accent
#DA0B9F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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