#7142C2#7142C2

#7142C2 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.190 H 295.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7142C2
RGBrgb(113, 66, 194)
HSLhsl(262, 51%, 51%)
HSVhsv(262, 66%, 76%)
CMYKcmyk(41.8%, 66%, 0%, 23.9%)
CIE-LABlab(40.08, 47.99, -59.87)
CIE-LCHlch(40.08, 76.73, 308.71°)
OKLaboklab(50.44% 0.0822 -0.1709)
OKLCHoklch(50.44% 0.19 295.7)
XYZxyz(18.4933, 11.3018, 52.2356)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142C2 #93C242
analogous
#4253C2 #7142C2 #B142C2
triadic
#7142C2 #C27142 #42C271
tetradic
#7142C2 #C24253 #93C242 #42C2B1
square
#7142C2 #C24253 #93C242 #42C2B1
split-complementary
#7142C2 #C2B142 #53C242
monochromatic
#3B2268 #563196 #7142C2 #9470D1 #B79FE0

Accessibility & contrast

On white

6.44
#7142C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7142C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142C2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142C2#FFFFFF#000000##FFFFFF
##7142C21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#5C607C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7142c2;
/* rgb */ color: rgb(113, 66, 194);
/* oklch */ color: oklch(50.4% 0.190 295.7);
Tailwind
colors: {
  custom: {
    50: '#a079d5',
    500: '#7142c2',
    950: '#000000',
  },
}
SCSS
$custom: #7142c2;
$custom-light: #a079d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7142c2",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 262.031,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50436,
    "c": 0.18969,
    "h": 295.7
  },
  "luminance": 0.11302
}

Semantic roles & 50–950 ramp

primary
#7142C2
secondary
#B7CC94
accent
#DB4DA7
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7142C2

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

Preview Lab → · Contrast checker → · Palette generator →

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