#7042E1#7042E1

#7042E1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.225 H 289.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7042E1
RGBrgb(112, 66, 225)
HSLhsl(257, 73%, 57%)
HSVhsv(257, 71%, 88%)
CMYKcmyk(50.2%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.42, 56.17, -73.92)
CIE-LCHlch(42.42, 92.84, 307.23°)
OKLaboklab(52.85% 0.0758 -0.2123)
OKLCHoklch(52.85% 0.225 289.6)
XYZxyz(22.2170, 12.7765, 72.5150)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042E1 #B3E142
analogous
#4264E1 #7042E1 #BF42E1
triadic
#7042E1 #E17042 #42E170
tetradic
#7042E1 #E14264 #B3E142 #42E1BF
square
#7042E1 #E14264 #B3E142 #42E1BF
split-complementary
#7042E1 #E1BF42 #64E142
monochromatic
#3B1792 #501FC6 #7042E1 #9877E9 #C0ACF2

Accessibility & contrast

On white

5.91
#7042E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7042E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042E1
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042E1#FFFFFF#000000##FFFFFF
##7042E11.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#486C8D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7042e1;
/* rgb */ color: rgb(112, 66, 225);
/* oklch */ color: oklch(52.8% 0.225 289.6);
Tailwind
colors: {
  custom: {
    50: '#a37aec',
    500: '#7042e1',
    950: '#000000',
  },
}
SCSS
$custom: #7042e1;
$custom-light: #a37aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7042e1",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 257.358,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.22537,
    "h": 289.6
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#7042E1
secondary
#CDE09F
accent
#EF38BA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7042E1

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

Preview Lab → · Contrast checker → · Palette generator →

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