#7142D8#7142D8

#7142D8 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.215 H 291.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7142D8
RGBrgb(113, 66, 216)
HSLhsl(259, 66%, 55%)
HSVhsv(259, 69%, 85%)
CMYKcmyk(47.7%, 69.4%, 0%, 15.3%)
CIE-LABlab(41.79, 53.90, -69.82)
CIE-LCHlch(41.79, 88.20, 307.67°)
OKLaboklab(52.19% 0.0789 -0.2002)
OKLCHoklch(52.19% 0.215 291.5)
XYZxyz(21.1494, 12.3642, 66.2246)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D8 #A9D842
analogous
#425ED8 #7142D8 #BC42D8
triadic
#7142D8 #D87142 #42D871
tetradic
#7142D8 #D8425E #A9D842 #42D8BC
square
#7142D8 #D8425E #A9D842 #42D8BC
split-complementary
#7142D8 #D8BC42 #5ED842
monochromatic
#3C1B84 #5326B7 #7142D8 #9775E2 #BDA7ED

Accessibility & contrast

On white

6.05
#7142D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7142D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142D8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142D8#FFFFFF#000000##FFFFFF
##7142D81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#506888
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7142d8;
/* rgb */ color: rgb(113, 66, 216);
/* oklch */ color: oklch(52.2% 0.215 291.5);
Tailwind
colors: {
  custom: {
    50: '#a27ae5',
    500: '#7142d8',
    950: '#000000',
  },
}
SCSS
$custom: #7142d8;
$custom-light: #a27ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d8",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 258.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5219,
    "c": 0.21515,
    "h": 291.5
  },
  "luminance": 0.12365
}

Semantic roles & 50–950 ramp

primary
#7142D8
secondary
#C7DA9C
accent
#E93FB4
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142D8

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

Preview Lab → · Contrast checker → · Palette generator →

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