#7042D4#7042D4

#7042D4 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.211 H 291.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7042D4
RGBrgb(112, 66, 212)
HSLhsl(259, 63%, 55%)
HSVhsv(259, 69%, 83%)
CMYKcmyk(47.2%, 68.9%, 0%, 16.9%)
CIE-LABlab(41.37, 52.64, -68.22)
CIE-LCHlch(41.37, 86.17, 307.66°)
OKLaboklab(51.76% 0.0782 -0.1955)
OKLCHoklch(51.76% 0.211 291.8)
XYZxyz(20.5106, 12.0939, 63.5283)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042D4 #A6D442
analogous
#425DD4 #7042D4 #B942D4
triadic
#7042D4 #D47042 #42D470
tetradic
#7042D4 #D4425D #A6D442 #42D4B9
square
#7042D4 #D4425D #A6D442 #42D4B9
split-complementary
#7042D4 #D4B942 #5DD442
monochromatic
#3C1D7F #5328B1 #7042D4 #9674DF #BBA6EB

Accessibility & contrast

On white

6.14
#7042D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7042D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042D4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042D4#FFFFFF#000000##FFFFFF
##7042D41.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#005FD1
Tritanopia (blue-blind)
#516786
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7042d4;
/* rgb */ color: rgb(112, 66, 212);
/* oklch */ color: oklch(51.8% 0.211 291.8);
Tailwind
colors: {
  custom: {
    50: '#a17ae2',
    500: '#7042d4',
    950: '#000000',
  },
}
SCSS
$custom: #7042d4;
$custom-light: #a17ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7042d4",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 258.904,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51763,
    "c": 0.21055,
    "h": 291.8
  },
  "luminance": 0.12095
}

Semantic roles & 50–950 ramp

primary
#7042D4
secondary
#C4D89A
accent
#E642B2
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7042D4

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

Preview Lab → · Contrast checker → · Palette generator →

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