#7142C4#7142C4

#7142C4 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.192 H 295.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7142C4
RGBrgb(113, 66, 196)
HSLhsl(262, 52%, 51%)
HSVhsv(262, 66%, 77%)
CMYKcmyk(42.3%, 66.3%, 0%, 23.1%)
CIE-LABlab(40.23, 48.52, -60.79)
CIE-LCHlch(40.23, 77.78, 308.60°)
OKLaboklab(50.59% 0.082 -0.1736)
OKLCHoklch(50.59% 0.192 295.3)
XYZxyz(18.7194, 11.3922, 53.4265)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142C4 #95C442
analogous
#4254C4 #7142C4 #B242C4
triadic
#7142C4 #C47142 #42C471
tetradic
#7142C4 #C44254 #95C442 #42C4B2
square
#7142C4 #C44254 #95C442 #42C4B2
split-complementary
#7142C4 #C4B242 #54C442
monochromatic
#3C216A #563099 #7142C4 #9471D3 #B79FE1

Accessibility & contrast

On white

6.41
#7142C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7142C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142C4
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142C4#FFFFFF#000000##FFFFFF
##7142C41.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#5B617D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7142c4;
/* rgb */ color: rgb(113, 66, 196);
/* oklch */ color: oklch(50.6% 0.192 295.3);
Tailwind
colors: {
  custom: {
    50: '#a079d7',
    500: '#7142c4',
    950: '#000000',
  },
}
SCSS
$custom: #7142c4;
$custom-light: #a079d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7142c4",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 261.692,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50591,
    "c": 0.19202,
    "h": 295.3
  },
  "luminance": 0.11393
}

Semantic roles & 50–950 ramp

primary
#7142C4
secondary
#B9CE94
accent
#DC4CA8
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7142C4

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

Preview Lab → · Contrast checker → · Palette generator →

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