#7042EC#7042EC

#7042EC is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.8% C 0.238 H 288.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7042EC
RGBrgb(112, 66, 236)
HSLhsl(256, 82%, 59%)
HSVhsv(256, 72%, 93%)
CMYKcmyk(52.5%, 72%, 0%, 7.5%)
CIE-LABlab(43.35, 59.16, -78.64)
CIE-LCHlch(43.35, 98.41, 306.95°)
OKLaboklab(53.79% 0.0735 -0.2261)
OKLCHoklch(53.79% 0.238 288)
XYZxyz(23.7662, 13.3961, 80.6740)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042EC #BEEC42
analogous
#4269EC #7042EC #C542EC
triadic
#7042EC #EC7042 #42EC70
tetradic
#7042EC #EC4269 #BEEC42 #42ECC5
square
#7042EC #EC4269 #BEEC42 #42ECC5
split-complementary
#7042EC #ECC542 #69EC42
monochromatic
#3810A3 #4B16DB #7042EC #9A7AF2 #C4B1F7

Accessibility & contrast

On white

5.71
#7042EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7042EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042EC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042EC#FFFFFF#000000##FFFFFF
##7042EC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#3F7093
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7042ec;
/* rgb */ color: rgb(112, 66, 236);
/* oklch */ color: oklch(53.8% 0.238 288.0);
Tailwind
colors: {
  custom: {
    50: '#a47bf3',
    500: '#7042ec',
    950: '#000000',
  },
}
SCSS
$custom: #7042ec;
$custom-light: #a47bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7042ec",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 236
  },
  "hsl": {
    "h": 256.235,
    "s": 81.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.23772,
    "h": 288
  },
  "luminance": 0.13397
}

Semantic roles & 50–950 ramp

primary
#7042EC
secondary
#D4E6A4
accent
#F830C2
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #7042EC

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

Preview Lab → · Contrast checker → · Palette generator →

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