#7054DB#7054DB

#7054DB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.197 H 287.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7054DB
RGBrgb(112, 84, 219)
HSLhsl(252, 65%, 59%)
HSVhsv(252, 62%, 86%)
CMYKcmyk(48.9%, 61.6%, 0%, 14.1%)
CIE-LABlab(45.50, 44.85, -65.50)
CIE-LCHlch(45.50, 79.39, 304.40°)
OKLaboklab(54.91% 0.0596 -0.1875)
OKLCHoklch(54.91% 0.197 287.6)
XYZxyz(22.6349, 14.8989, 68.6872)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7054DB #BFDB54
analogous
#547CDB #7054DB #B354DB
triadic
#7054DB #DB7054 #54DB70
tetradic
#7054DB #DB547C #BFDB54 #54DBB3
square
#7054DB #DB547C #BFDB54 #54DBB3
split-complementary
#7054DB #DBB354 #7CDB54
monochromatic
#381F95 #4B2AC8 #7054DB #9A87E6 #C5B9F0

Accessibility & contrast

On white

5.28
#7054DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7054DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7054DB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7054DB#FFFFFF#000000##FFFFFF
##7054DB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#4B7490
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7054db;
/* rgb */ color: rgb(112, 84, 219);
/* oklch */ color: oklch(54.9% 0.197 287.6);
Tailwind
colors: {
  custom: {
    50: '#a185e7',
    500: '#7054db',
    950: '#000000',
  },
}
SCSS
$custom: #7054db;
$custom-light: #a185e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7054db",
  "rgb": {
    "r": 112,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 252.444,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54911,
    "c": 0.19678,
    "h": 287.6
  },
  "luminance": 0.149
}

Semantic roles & 50–950 ramp

primary
#7054DB
secondary
#D5E0AB
accent
#E840C5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7054DB

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

Preview Lab → · Contrast checker → · Palette generator →

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