#7054EF#7054EF

#7054EF is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.221 H 285.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7054EF
RGBrgb(112, 84, 239)
HSLhsl(251, 83%, 63%)
HSVhsv(251, 65%, 94%)
CMYKcmyk(53.1%, 64.9%, 0%, 6.3%)
CIE-LABlab(47.00, 50.64, -74.38)
CIE-LCHlch(47.00, 89.98, 304.25°)
OKLaboklab(56.47% 0.0577 -0.2136)
OKLCHoklch(56.47% 0.221 285.1)
XYZxyz(25.4277, 16.0160, 83.3962)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7054EF #D3EF54
analogous
#5485EF #7054EF #BE54EF
triadic
#7054EF #EF7054 #54EF70
tetradic
#7054EF #EF5485 #D3EF54 #54EFBE
square
#7054EF #EF5485 #D3EF54 #54EFBE
split-complementary
#7054EF #EFBE54 #85EF54
monochromatic
#2F11B7 #411CEA #7054EF #9F8CF4 #CEC4F9

Accessibility & contrast

On white

5.00
#7054EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7054EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7054EF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7054EF#FFFFFF#000000##FFFFFF
##7054EF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#006BEC
Tritanopia (blue-blind)
#3A7B9A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7054ef;
/* rgb */ color: rgb(112, 84, 239);
/* oklch */ color: oklch(56.5% 0.221 285.1);
Tailwind
colors: {
  custom: {
    50: '#a486f5',
    500: '#7054ef',
    950: '#000000',
  },
}
SCSS
$custom: #7054ef;
$custom-light: #a486f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7054ef",
  "rgb": {
    "r": 112,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 250.839,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.22128,
    "h": 285.1
  },
  "luminance": 0.16017
}

Semantic roles & 50–950 ramp

primary
#7054EF
secondary
#E1EBB4
accent
#DF06B8
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7054EF

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

Preview Lab → · Contrast checker → · Palette generator →

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