#7142E1#7142E1

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

Color values

HEX#7142E1
RGBrgb(113, 66, 225)
HSLhsl(258, 73%, 57%)
HSVhsv(258, 71%, 88%)
CMYKcmyk(49.8%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.52, 56.33, -73.76)
CIE-LCHlch(42.52, 92.81, 307.37°)
OKLaboklab(52.94% 0.0772 -0.2117)
OKLCHoklch(52.94% 0.225 290)
XYZxyz(22.3450, 12.8424, 72.5210)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142E1 #B2E142
analogous
#4263E1 #7142E1 #C142E1
triadic
#7142E1 #E17142 #42E171
tetradic
#7142E1 #E14263 #B2E142 #42E1C1
square
#7142E1 #E14263 #B2E142 #42E1C1
split-complementary
#7142E1 #E1C142 #63E142
monochromatic
#3B1792 #511FC6 #7142E1 #9977E9 #C0ACF2

Accessibility & contrast

On white

5.88
#7142E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7142E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142E1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142E1#FFFFFF#000000##FFFFFF
##7142E11.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#4A6C8D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7142e1;
/* rgb */ color: rgb(113, 66, 225);
/* oklch */ color: oklch(52.9% 0.225 290.0);
Tailwind
colors: {
  custom: {
    50: '#a47aec',
    500: '#7142e1',
    950: '#000000',
  },
}
SCSS
$custom: #7142e1;
$custom-light: #a47aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7142e1",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 257.736,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5294,
    "c": 0.22536,
    "h": 290
  },
  "luminance": 0.12843
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7142E1

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

Preview Lab → · Contrast checker → · Palette generator →

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