#7142AF#7142AF

#7142AF is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.0% C 0.167 H 300.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7142AF
RGBrgb(113, 66, 175)
HSLhsl(266, 45%, 47%)
HSVhsv(266, 62%, 69%)
CMYKcmyk(35.4%, 62.3%, 0%, 31.4%)
CIE-LABlab(38.73, 42.99, -50.89)
CIE-LCHlch(38.73, 66.62, 310.19°)
OKLaboklab(49.03% 0.0839 -0.1445)
OKLCHoklch(49.03% 0.167 300.1)
XYZxyz(16.4943, 10.5022, 41.7073)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142AF #80AF42
analogous
#4249AF #7142AF #A842AF
triadic
#7142AF #AF7142 #42AF71
tetradic
#7142AF #AF4249 #80AF42 #42AFA8
square
#7142AF #AF4249 #80AF42 #42AFA8
split-complementary
#7142AF #AFA842 #49AF42
monochromatic
#382056 #543183 #7142AF #9168C6 #B195D7

Accessibility & contrast

On white

6.77
#7142AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7142AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7142AF#FFFFFF#000000##FFFFFF
##7142AF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#195AAD
Tritanopia (blue-blind)
#645972
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7142af;
/* rgb */ color: rgb(113, 66, 175);
/* oklch */ color: oklch(49.0% 0.167 300.1);
Tailwind
colors: {
  custom: {
    50: '#9e79c8',
    500: '#7142af',
    950: '#000000',
  },
}
SCSS
$custom: #7142af;
$custom-light: #9e79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7142af",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 265.872,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49028,
    "c": 0.16712,
    "h": 300.1
  },
  "luminance": 0.10502
}

Semantic roles & 50–950 ramp

primary
#7142AF
secondary
#AAC28A
accent
#D5539D
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7142AF

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

Preview Lab → · Contrast checker → · Palette generator →

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