#7142D4#7142D4

#7142D4 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.211 H 292.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7142D4
RGBrgb(113, 66, 212)
HSLhsl(259, 63%, 55%)
HSVhsv(259, 69%, 83%)
CMYKcmyk(46.7%, 68.9%, 0%, 16.9%)
CIE-LABlab(41.47, 52.82, -68.04)
CIE-LCHlch(41.47, 86.13, 307.82°)
OKLaboklab(51.86% 0.0796 -0.195)
OKLCHoklch(51.86% 0.211 292.2)
XYZxyz(20.6386, 12.1599, 63.5343)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D4 #A5D442
analogous
#425CD4 #7142D4 #BA42D4
triadic
#7142D4 #D47142 #42D471
tetradic
#7142D4 #D4425C #A5D442 #42D4BA
square
#7142D4 #D4425C #A5D442 #42D4BA
split-complementary
#7142D4 #D4BA42 #5CD442
monochromatic
#3C1D7F #5428B1 #7142D4 #9674DF #BCA6EB

Accessibility & contrast

On white

6.12
#7142D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7142D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142D4
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142D4#FFFFFF#000000##FFFFFF
##7142D41.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#005FD1
Tritanopia (blue-blind)
#536786
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7142d4;
/* rgb */ color: rgb(113, 66, 212);
/* oklch */ color: oklch(51.9% 0.211 292.2);
Tailwind
colors: {
  custom: {
    50: '#a27ae2',
    500: '#7142d4',
    950: '#000000',
  },
}
SCSS
$custom: #7142d4;
$custom-light: #a27ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d4",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 259.315,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51862,
    "c": 0.21057,
    "h": 292.2
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#7142D4
secondary
#C4D89A
accent
#E642B1
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7142D4

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

Preview Lab → · Contrast checker → · Palette generator →

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