#7042DC#7042DC

#7042DC is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.220 H 290.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7042DC
RGBrgb(112, 66, 220)
HSLhsl(258, 69%, 56%)
HSVhsv(258, 70%, 86%)
CMYKcmyk(49.1%, 70%, 0%, 13.7%)
CIE-LABlab(42.01, 54.81, -71.75)
CIE-LCHlch(42.01, 90.29, 307.38°)
OKLaboklab(52.43% 0.0767 -0.2059)
OKLCHoklch(52.43% 0.22 290.4)
XYZxyz(21.5449, 12.5076, 68.9753)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042DC #AEDC42
analogous
#4261DC #7042DC #BD42DC
triadic
#7042DC #DC7042 #42DC70
tetradic
#7042DC #DC4261 #AEDC42 #42DCBD
square
#7042DC #DC4261 #AEDC42 #42DCBD
split-complementary
#7042DC #DCBD42 #61DC42
monochromatic
#3B1A8A #5123BE #7042DC #9776E6 #BEA9EF

Accessibility & contrast

On white

6.00
#7042DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7042DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042DC
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042DC#FFFFFF#000000##FFFFFF
##7042DC1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#4B6A8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7042dc;
/* rgb */ color: rgb(112, 66, 220);
/* oklch */ color: oklch(52.4% 0.220 290.4);
Tailwind
colors: {
  custom: {
    50: '#a27ae8',
    500: '#7042dc',
    950: '#000000',
  },
}
SCSS
$custom: #7042dc;
$custom-light: #a27ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#7042dc",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 257.922,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52425,
    "c": 0.2197,
    "h": 290.4
  },
  "luminance": 0.12508
}

Semantic roles & 50–950 ramp

primary
#7042DC
secondary
#CADD9D
accent
#EC3CB7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7042DC

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

Preview Lab → · Contrast checker → · Palette generator →

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