#7142AB#7142AB

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

Color values

HEX#7142AB
RGBrgb(113, 66, 171)
HSLhsl(267, 44%, 46%)
HSVhsv(267, 61%, 67%)
CMYKcmyk(33.9%, 61.4%, 0%, 32.9%)
CIE-LABlab(38.46, 41.96, -48.95)
CIE-LCHlch(38.46, 64.47, 310.60°)
OKLaboklab(48.75% 0.0841 -0.1388)
OKLCHoklch(48.75% 0.162 301.2)
XYZxyz(16.1072, 10.3473, 39.6688)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142AB #7CAB42
analogous
#4248AB #7142AB #A642AB
triadic
#7142AB #AB7142 #42AB71
tetradic
#7142AB #AB4248 #7CAB42 #42ABA6
square
#7142AB #AB4248 #7CAB42 #42ABA6
split-complementary
#7142AB #ABA642 #48AB42
monochromatic
#372053 #54317F #7142AB #9066C4 #B092D5

Accessibility & contrast

On white

6.84
#7142AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7142AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7142AB#FFFFFF#000000##FFFFFF
##7142AB1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#655870
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7142ab;
/* rgb */ color: rgb(113, 66, 171);
/* oklch */ color: oklch(48.7% 0.162 301.2);
Tailwind
colors: {
  custom: {
    50: '#9e79c5',
    500: '#7142ab',
    950: '#000000',
  },
}
SCSS
$custom: #7142ab;
$custom-light: #9e79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7142ab",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 266.857,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48745,
    "c": 0.16232,
    "h": 301.2
  },
  "luminance": 0.10347
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7142AB

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

Preview Lab → · Contrast checker → · Palette generator →

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