#7142CA#7142CA

#7142CA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.199 H 294.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7142CA
RGBrgb(113, 66, 202)
HSLhsl(261, 56%, 53%)
HSVhsv(261, 67%, 79%)
CMYKcmyk(44.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.69, 50.13, -63.54)
CIE-LCHlch(40.69, 80.93, 308.27°)
OKLaboklab(51.06% 0.0812 -0.1817)
OKLCHoklch(51.06% 0.199 294.1)
XYZxyz(19.4160, 11.6709, 57.0954)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142CA #9BCA42
analogous
#4257CA #7142CA #B542CA
triadic
#7142CA #CA7142 #42CA71
tetradic
#7142CA #CA4257 #9BCA42 #42CAB5
square
#7142CA #CA4257 #9BCA42 #42CAB5
split-complementary
#7142CA #CAB542 #57CA42
monochromatic
#3C2072 #552DA2 #7142CA #9572D7 #B9A2E5

Accessibility & contrast

On white

6.30
#7142CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7142CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142CA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142CA#FFFFFF#000000##FFFFFF
##7142CA1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#586381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7142ca;
/* rgb */ color: rgb(113, 66, 202);
/* oklch */ color: oklch(51.1% 0.199 294.1);
Tailwind
colors: {
  custom: {
    50: '#a17adb',
    500: '#7142ca',
    950: '#000000',
  },
}
SCSS
$custom: #7142ca;
$custom-light: #a17adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7142ca",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 260.735,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5106,
    "c": 0.19903,
    "h": 294.1
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#7142CA
secondary
#BDD196
accent
#DF48AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142CA

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

Preview Lab → · Contrast checker → · Palette generator →

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