#7142AA#7142AA

#7142AA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.161 H 301.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7142AA
RGBrgb(113, 66, 170)
HSLhsl(267, 44%, 46%)
HSVhsv(267, 61%, 67%)
CMYKcmyk(33.5%, 61.2%, 0%, 33.3%)
CIE-LABlab(38.39, 41.70, -48.46)
CIE-LCHlch(38.39, 63.93, 310.71°)
OKLaboklab(48.68% 0.0841 -0.1374)
OKLCHoklch(48.68% 0.161 301.5)
XYZxyz(16.0123, 10.3094, 39.1687)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142AA #7BAA42
analogous
#4247AA #7142AA #A542AA
triadic
#7142AA #AA7142 #42AA71
tetradic
#7142AA #AA4247 #7BAA42 #42AAA5
square
#7142AA #AA4247 #7BAA42 #42AAA5
split-complementary
#7142AA #AAA542 #47AA42
monochromatic
#362052 #54317E #7142AA #9066C3 #B092D5

Accessibility & contrast

On white

6.86
#7142AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7142AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7142AA#FFFFFF#000000##FFFFFF
##7142AA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAD
Deuteranopia (green-blind)
#225AA8
Tritanopia (blue-blind)
#655870
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7142aa;
/* rgb */ color: rgb(113, 66, 170);
/* oklch */ color: oklch(48.7% 0.161 301.5);
Tailwind
colors: {
  custom: {
    50: '#9e79c4',
    500: '#7142aa',
    950: '#000000',
  },
}
SCSS
$custom: #7142aa;
$custom-light: #9e79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7142aa",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 267.115,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48675,
    "c": 0.16111,
    "h": 301.5
  },
  "luminance": 0.10309
}

Semantic roles & 50–950 ramp

primary
#7142AA
secondary
#A7C088
accent
#D4549A
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7142AA

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

Preview Lab → · Contrast checker → · Palette generator →

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