#7042E2#7042E2

#7042E2 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.227 H 289.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7042E2
RGBrgb(112, 66, 226)
HSLhsl(257, 73%, 57%)
HSVhsv(257, 71%, 89%)
CMYKcmyk(50.4%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.51, 56.44, -74.36)
CIE-LCHlch(42.51, 93.35, 307.20°)
OKLaboklab(52.93% 0.0756 -0.2135)
OKLCHoklch(52.93% 0.227 289.5)
XYZxyz(22.3538, 12.8312, 73.2356)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042E2 #B4E242
analogous
#4264E2 #7042E2 #C042E2
triadic
#7042E2 #E27042 #42E270
tetradic
#7042E2 #E24264 #B4E242 #42E2C0
square
#7042E2 #E24264 #B4E242 #42E2C0
split-complementary
#7042E2 #E2C042 #64E242
monochromatic
#3A1793 #4F1FC8 #7042E2 #9877EA #C0ACF2

Accessibility & contrast

On white

5.89
#7042E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7042E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042E2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042E2#FFFFFF#000000##FFFFFF
##7042E21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#476C8E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7042e2;
/* rgb */ color: rgb(112, 66, 226);
/* oklch */ color: oklch(52.9% 0.227 289.5);
Tailwind
colors: {
  custom: {
    50: '#a37aec',
    500: '#7042e2',
    950: '#000000',
  },
}
SCSS
$custom: #7042e2;
$custom-light: #a37aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7042e2",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 257.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5293,
    "c": 0.2265,
    "h": 289.5
  },
  "luminance": 0.12832
}

Semantic roles & 50–950 ramp

primary
#7042E2
secondary
#CEE09F
accent
#F038BB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7042E2

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

Preview Lab → · Contrast checker → · Palette generator →

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