#7142CC#7142CC

#7142CC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.201 H 293.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7142CC
RGBrgb(113, 66, 204)
HSLhsl(260, 58%, 53%)
HSVhsv(260, 68%, 80%)
CMYKcmyk(44.6%, 67.6%, 0%, 20%)
CIE-LABlab(40.84, 50.66, -64.45)
CIE-LCHlch(40.84, 81.98, 308.17°)
OKLaboklab(51.22% 0.0809 -0.1844)
OKLCHoklch(51.22% 0.201 293.7)
XYZxyz(19.6544, 11.7662, 58.3506)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142CC #9DCC42
analogous
#4258CC #7142CC #B642CC
triadic
#7142CC #CC7142 #42CC71
tetradic
#7142CC #CC4258 #9DCC42 #42CCB6
square
#7142CC #CC4258 #9DCC42 #42CCB6
split-complementary
#7142CC #CCB642 #58CC42
monochromatic
#3C1F74 #552CA4 #7142CC #9572D9 #B9A2E6

Accessibility & contrast

On white

6.26
#7142CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7142CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142CC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142CC#FFFFFF#000000##FFFFFF
##7142CC1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#576482
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7142cc;
/* rgb */ color: rgb(113, 66, 204);
/* oklch */ color: oklch(51.2% 0.201 293.7);
Tailwind
colors: {
  custom: {
    50: '#a17adc',
    500: '#7142cc',
    950: '#000000',
  },
}
SCSS
$custom: #7142cc;
$custom-light: #a17adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7142cc",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 260.435,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.20135,
    "h": 293.7
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#7142CC
secondary
#BED397
accent
#E147AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142CC

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

Preview Lab → · Contrast checker → · Palette generator →

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