#7142C0#7142C0

#7142C0 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.187 H 296.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7142C0
RGBrgb(113, 66, 192)
HSLhsl(262, 50%, 51%)
HSVhsv(262, 66%, 75%)
CMYKcmyk(41.1%, 65.6%, 0%, 24.7%)
CIE-LABlab(39.94, 47.46, -58.94)
CIE-LCHlch(39.94, 75.67, 308.84°)
OKLaboklab(50.28% 0.0825 -0.1682)
OKLCHoklch(50.28% 0.187 296.1)
XYZxyz(18.2702, 11.2125, 51.0606)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142C0 #91C042
analogous
#4252C0 #7142C0 #B042C0
triadic
#7142C0 #C07142 #42C071
tetradic
#7142C0 #C04252 #91C042 #42C0B0
square
#7142C0 #C04252 #91C042 #42C0B0
split-complementary
#7142C0 #C0B042 #52C042
monochromatic
#3B2266 #563194 #7142C0 #9370CF #B69EDF

Accessibility & contrast

On white

6.48
#7142C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7142C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142C0
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142C0#FFFFFF#000000##FFFFFF
##7142C01.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#5D5F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7142c0;
/* rgb */ color: rgb(113, 66, 192);
/* oklch */ color: oklch(50.3% 0.187 296.1);
Tailwind
colors: {
  custom: {
    50: '#a079d4',
    500: '#7142c0',
    950: '#000000',
  },
}
SCSS
$custom: #7142c0;
$custom-light: #a079d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7142c0",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 262.381,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50283,
    "c": 0.18733,
    "h": 296.1
  },
  "luminance": 0.11213
}

Semantic roles & 50–950 ramp

primary
#7142C0
secondary
#B6CB93
accent
#DA4EA6
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7142C0

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

Preview Lab → · Contrast checker → · Palette generator →

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