#7142E2#7142E2

#7142E2 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.226 H 289.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7142E2
RGBrgb(113, 66, 226)
HSLhsl(258, 73%, 57%)
HSVhsv(258, 71%, 89%)
CMYKcmyk(50%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.61, 56.60, -74.19)
CIE-LCHlch(42.61, 93.32, 307.34°)
OKLaboklab(53.03% 0.077 -0.213)
OKLCHoklch(53.03% 0.226 289.9)
XYZxyz(22.4818, 12.8972, 73.2416)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142E2 #B3E242
analogous
#4263E2 #7142E2 #C142E2
triadic
#7142E2 #E27142 #42E271
tetradic
#7142E2 #E24263 #B3E242 #42E2C1
square
#7142E2 #E24263 #B3E242 #42E2C1
split-complementary
#7142E2 #E2C142 #63E242
monochromatic
#3B1793 #501FC8 #7142E2 #9977EA #C1ACF2

Accessibility & contrast

On white

5.87
#7142E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7142E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142E2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142E2#FFFFFF#000000##FFFFFF
##7142E21.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#496C8E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7142e2;
/* rgb */ color: rgb(113, 66, 226);
/* oklch */ color: oklch(53.0% 0.226 289.9);
Tailwind
colors: {
  custom: {
    50: '#a47aec',
    500: '#7142e2',
    950: '#000000',
  },
}
SCSS
$custom: #7142e2;
$custom-light: #a47aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7142e2",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 257.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53025,
    "c": 0.22648,
    "h": 289.9
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#7142E2
secondary
#CDE09F
accent
#F038BA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142E2

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

Preview Lab → · Contrast checker → · Palette generator →

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