#7142C7#7142C7

#7142C7 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.196 H 294.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7142C7
RGBrgb(113, 66, 199)
HSLhsl(261, 54%, 52%)
HSVhsv(261, 67%, 78%)
CMYKcmyk(43.2%, 66.8%, 0%, 22%)
CIE-LABlab(40.46, 49.32, -62.17)
CIE-LCHlch(40.46, 79.36, 308.43°)
OKLaboklab(50.82% 0.0816 -0.1777)
OKLCHoklch(50.82% 0.196 294.7)
XYZxyz(19.0643, 11.5302, 55.2429)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142C7 #98C742
analogous
#4256C7 #7142C7 #B442C7
triadic
#7142C7 #C77142 #42C771
tetradic
#7142C7 #C74256 #98C742 #42C7B4
square
#7142C7 #C74256 #98C742 #42C7B4
split-complementary
#7142C7 #C7B442 #56C742
monochromatic
#3C216E #562F9D #7142C7 #9471D5 #B8A0E3

Accessibility & contrast

On white

6.35
#7142C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7142C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142C7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142C7#FFFFFF#000000##FFFFFF
##7142C71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#59627F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7142c7;
/* rgb */ color: rgb(113, 66, 199);
/* oklch */ color: oklch(50.8% 0.196 294.7);
Tailwind
colors: {
  custom: {
    50: '#a079d9',
    500: '#7142c7',
    950: '#000000',
  },
}
SCSS
$custom: #7142c7;
$custom-light: #a079d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7142c7",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 261.203,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50824,
    "c": 0.19553,
    "h": 294.7
  },
  "luminance": 0.11531
}

Semantic roles & 50–950 ramp

primary
#7142C7
secondary
#BBD095
accent
#DE4AAA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7142C7

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

Preview Lab → · Contrast checker → · Palette generator →

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