#7054E7#7054E7

#7054E7 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 55.8% C 0.212 H 286.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7054E7
RGBrgb(112, 84, 231)
HSLhsl(251, 75%, 62%)
HSVhsv(251, 64%, 91%)
CMYKcmyk(51.5%, 63.6%, 0%, 9.4%)
CIE-LABlab(46.38, 48.32, -70.87)
CIE-LCHlch(46.38, 85.77, 304.29°)
OKLaboklab(55.84% 0.0586 -0.2033)
OKLCHoklch(55.84% 0.212 286.1)
XYZxyz(24.2719, 15.5537, 77.3090)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7054E7 #CBE754
analogous
#5481E7 #7054E7 #BA54E7
triadic
#7054E7 #E77054 #54E770
tetradic
#7054E7 #E75481 #CBE754 #54E7BA
square
#7054E7 #E75481 #CBE754 #54E7BA
split-complementary
#7054E7 #E7BA54 #81E754
monochromatic
#3318A9 #441FDF #7054E7 #9D8AEF #CABFF6

Accessibility & contrast

On white

5.11
#7054E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7054E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7054E7
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7054E7#FFFFFF#000000##FFFFFF
##7054E71.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#006AE4
Tritanopia (blue-blind)
#427896
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7054e7;
/* rgb */ color: rgb(112, 84, 231);
/* oklch */ color: oklch(55.8% 0.212 286.1);
Tailwind
colors: {
  custom: {
    50: '#a386f0',
    500: '#7054e7',
    950: '#000000',
  },
}
SCSS
$custom: #7054e7;
$custom-light: #a386f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7054e7",
  "rgb": {
    "r": 112,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 251.429,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.55835,
    "c": 0.21158,
    "h": 286.1
  },
  "luminance": 0.15555
}

Semantic roles & 50–950 ramp

primary
#7054E7
secondary
#DCE7B0
accent
#D80EB1
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7054E7

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

Preview Lab → · Contrast checker → · Palette generator →

#7054E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva