#7054DC#7054DC

#7054DC is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.198 H 287.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7054DC
RGBrgb(112, 84, 220)
HSLhsl(252, 66%, 60%)
HSVhsv(252, 62%, 86%)
CMYKcmyk(49.1%, 61.8%, 0%, 13.7%)
CIE-LABlab(45.57, 45.14, -65.95)
CIE-LCHlch(45.57, 79.92, 304.39°)
OKLaboklab(54.99% 0.0595 -0.1889)
OKLCHoklch(54.99% 0.198 287.5)
XYZxyz(22.7669, 14.9517, 69.3826)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7054DC #C0DC54
analogous
#547CDC #7054DC #B454DC
triadic
#7054DC #DC7054 #54DC70
tetradic
#7054DC #DC547C #C0DC54 #54DCB4
square
#7054DC #DC547C #C0DC54 #54DCB4
split-complementary
#7054DC #DCB454 #7CDC54
monochromatic
#381F97 #4A29CA #7054DC #9A87E6 #C5BAF1

Accessibility & contrast

On white

5.26
#7054DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7054DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7054DC
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7054DC#FFFFFF#000000##FFFFFF
##7054DC1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#4A7490
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7054dc;
/* rgb */ color: rgb(112, 84, 220);
/* oklch */ color: oklch(55.0% 0.198 287.5);
Tailwind
colors: {
  custom: {
    50: '#a185e8',
    500: '#7054dc',
    950: '#000000',
  },
}
SCSS
$custom: #7054dc;
$custom-light: #a185e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7054dc",
  "rgb": {
    "r": 112,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 252.353,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54986,
    "c": 0.19803,
    "h": 287.5
  },
  "luminance": 0.14953
}

Semantic roles & 50–950 ramp

primary
#7054DC
secondary
#D5E0AC
accent
#E93FC6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7054DC

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

Preview Lab → · Contrast checker → · Palette generator →

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