#7054EC#7054EC

#7054EC is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.2% C 0.218 H 285.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7054EC
RGBrgb(112, 84, 236)
HSLhsl(251, 80%, 63%)
HSVhsv(251, 64%, 93%)
CMYKcmyk(52.5%, 64.4%, 0%, 7.5%)
CIE-LABlab(46.76, 49.77, -73.07)
CIE-LCHlch(46.76, 88.41, 304.26°)
OKLaboklab(56.23% 0.0581 -0.2098)
OKLCHoklch(56.23% 0.218 285.5)
XYZxyz(24.9882, 15.8402, 81.0814)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7054EC #D0EC54
analogous
#5484EC #7054EC #BC54EC
triadic
#7054EC #EC7054 #54EC70
tetradic
#7054EC #EC5484 #D0EC54 #54ECBC
square
#7054EC #EC5484 #D0EC54 #54ECBC
split-complementary
#7054EC #ECBC54 #84EC54
monochromatic
#3114B2 #421DE6 #7054EC #9E8BF2 #CCC2F8

Accessibility & contrast

On white

5.04
#7054EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7054EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7054EC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7054EC#FFFFFF#000000##FFFFFF
##7054EC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#3D7A99
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7054ec;
/* rgb */ color: rgb(112, 84, 236);
/* oklch */ color: oklch(56.2% 0.218 285.5);
Tailwind
colors: {
  custom: {
    50: '#a386f3',
    500: '#7054ec',
    950: '#000000',
  },
}
SCSS
$custom: #7054ec;
$custom-light: #a386f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7054ec",
  "rgb": {
    "r": 112,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 251.053,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.21765,
    "h": 285.5
  },
  "luminance": 0.15842
}

Semantic roles & 50–950 ramp

primary
#7054EC
secondary
#DFE9B2
accent
#DC09B5
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7054EC

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

Preview Lab → · Contrast checker → · Palette generator →

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