#7142AC#7142AC

#7142AC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.164 H 300.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7142AC
RGBrgb(113, 66, 172)
HSLhsl(267, 45%, 47%)
HSVhsv(267, 62%, 67%)
CMYKcmyk(34.3%, 61.6%, 0%, 32.5%)
CIE-LABlab(38.53, 42.21, -49.44)
CIE-LCHlch(38.53, 65.01, 310.49°)
OKLaboklab(48.82% 0.0841 -0.1403)
OKLCHoklch(48.82% 0.164 300.9)
XYZxyz(16.2029, 10.3856, 40.1727)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142AC #7DAC42
analogous
#4248AC #7142AC #A642AC
triadic
#7142AC #AC7142 #42AC71
tetradic
#7142AC #AC4248 #7DAC42 #42ACA6
square
#7142AC #AC4248 #7DAC42 #42ACA6
split-complementary
#7142AC #ACA642 #48AC42
monochromatic
#372054 #543180 #7142AC #9067C5 #B093D6

Accessibility & contrast

On white

6.82
#7142AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7142AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7142AC#FFFFFF#000000##FFFFFF
##7142AC1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#1F5AAA
Tritanopia (blue-blind)
#655871
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7142ac;
/* rgb */ color: rgb(113, 66, 172);
/* oklch */ color: oklch(48.8% 0.164 300.9);
Tailwind
colors: {
  custom: {
    50: '#9e79c5',
    500: '#7142ac',
    950: '#000000',
  },
}
SCSS
$custom: #7142ac;
$custom-light: #9e79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7142ac",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 266.604,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48815,
    "c": 0.16352,
    "h": 300.9
  },
  "luminance": 0.10386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7142AC

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

Preview Lab → · Contrast checker → · Palette generator →

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