#7142C5#7142C5

#7142C5 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.193 H 295.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7142C5
RGBrgb(113, 66, 197)
HSLhsl(262, 53%, 52%)
HSVhsv(262, 66%, 77%)
CMYKcmyk(42.6%, 66.5%, 0%, 22.7%)
CIE-LABlab(40.31, 48.79, -61.25)
CIE-LCHlch(40.31, 78.31, 308.54°)
OKLaboklab(50.67% 0.0818 -0.175)
OKLCHoklch(50.67% 0.193 295.1)
XYZxyz(18.8336, 11.4379, 54.0279)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142C5 #96C542
analogous
#4255C5 #7142C5 #B342C5
triadic
#7142C5 #C57142 #42C571
tetradic
#7142C5 #C54255 #96C542 #42C5B3
square
#7142C5 #C54255 #96C542 #42C5B3
split-complementary
#7142C5 #C5B342 #55C542
monochromatic
#3C216C #562F9A #7142C5 #9471D3 #B7A0E2

Accessibility & contrast

On white

6.39
#7142C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7142C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142C5
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142C5#FFFFFF#000000##FFFFFF
##7142C51.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#5A617E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7142c5;
/* rgb */ color: rgb(113, 66, 197);
/* oklch */ color: oklch(50.7% 0.193 295.1);
Tailwind
colors: {
  custom: {
    50: '#a079d7',
    500: '#7142c5',
    950: '#000000',
  },
}
SCSS
$custom: #7142c5;
$custom-light: #a079d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7142c5",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 261.527,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50668,
    "c": 0.1932,
    "h": 295.1
  },
  "luminance": 0.11438
}

Semantic roles & 50–950 ramp

primary
#7142C5
secondary
#BACE95
accent
#DC4BA8
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7142C5

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

Preview Lab → · Contrast checker → · Palette generator →

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