#7142CF#7142CF

#7142CF is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.205 H 293.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7142CF
RGBrgb(113, 66, 207)
HSLhsl(260, 59%, 54%)
HSVhsv(260, 68%, 81%)
CMYKcmyk(45.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(41.08, 51.47, -65.80)
CIE-LCHlch(41.08, 83.54, 308.03°)
OKLaboklab(51.46% 0.0804 -0.1884)
OKLCHoklch(51.46% 0.205 293.1)
XYZxyz(20.0177, 11.9115, 60.2638)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142CF #A0CF42
analogous
#4259CF #7142CF #B742CF
triadic
#7142CF #CF7142 #42CF71
tetradic
#7142CF #CF4259 #A0CF42 #42CFB7
square
#7142CF #CF4259 #A0CF42 #42CFB7
split-complementary
#7142CF #CFB742 #59CF42
monochromatic
#3C1F78 #552BA9 #7142CF #9673DB #BAA4E8

Accessibility & contrast

On white

6.21
#7142CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7142CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142CF
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142CF#FFFFFF#000000##FFFFFF
##7142CF1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#556583
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7142cf;
/* rgb */ color: rgb(113, 66, 207);
/* oklch */ color: oklch(51.5% 0.205 293.1);
Tailwind
colors: {
  custom: {
    50: '#a17adf',
    500: '#7142cf',
    950: '#000000',
  },
}
SCSS
$custom: #7142cf;
$custom-light: #a17adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7142cf",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 260,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51458,
    "c": 0.20482,
    "h": 293.1
  },
  "luminance": 0.11912
}

Semantic roles & 50–950 ramp

primary
#7142CF
secondary
#C0D598
accent
#E345AE
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142CF

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

Preview Lab → · Contrast checker → · Palette generator →

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