#7142D6#7142D6

#7142D6 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.213 H 291.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7142D6
RGBrgb(113, 66, 214)
HSLhsl(259, 64%, 55%)
HSVhsv(259, 69%, 84%)
CMYKcmyk(47.2%, 69.2%, 0%, 16.1%)
CIE-LABlab(41.63, 53.36, -68.93)
CIE-LCHlch(41.63, 87.17, 307.74°)
OKLaboklab(52.03% 0.0792 -0.1976)
OKLCHoklch(52.03% 0.213 291.8)
XYZxyz(20.8925, 12.2614, 64.8712)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D6 #A7D642
analogous
#425DD6 #7142D6 #BB42D6
triadic
#7142D6 #D67142 #42D671
tetradic
#7142D6 #D6425D #A7D642 #42D6BB
square
#7142D6 #D6425D #A7D642 #42D6BB
split-complementary
#7142D6 #D6BB42 #5DD642
monochromatic
#3C1C82 #5427B4 #7142D6 #9774E1 #BDA7EC

Accessibility & contrast

On white

6.08
#7142D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7142D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142D6
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142D6#FFFFFF#000000##FFFFFF
##7142D61.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#005FD3
Tritanopia (blue-blind)
#516787
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7142d6;
/* rgb */ color: rgb(113, 66, 214);
/* oklch */ color: oklch(52.0% 0.213 291.8);
Tailwind
colors: {
  custom: {
    50: '#a27ae4',
    500: '#7142d6',
    950: '#000000',
  },
}
SCSS
$custom: #7142d6;
$custom-light: #a27ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d6",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 259.054,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52025,
    "c": 0.21286,
    "h": 291.8
  },
  "luminance": 0.12262
}

Semantic roles & 50–950 ramp

primary
#7142D6
secondary
#C5D99B
accent
#E740B2
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142D6

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

Preview Lab → · Contrast checker → · Palette generator →

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