#7142D5#7142D5

#7142D5 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.212 H 292.0°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7142D5
RGBrgb(113, 66, 213)
HSLhsl(259, 64%, 55%)
HSVhsv(259, 69%, 84%)
CMYKcmyk(46.9%, 69%, 0%, 16.5%)
CIE-LABlab(41.55, 53.09, -68.49)
CIE-LCHlch(41.55, 86.65, 307.78°)
OKLaboklab(51.94% 0.0794 -0.1963)
OKLCHoklch(51.94% 0.212 292)
XYZxyz(20.7651, 12.2105, 64.2007)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D5 #A6D542
analogous
#425CD5 #7142D5 #BB42D5
triadic
#7142D5 #D57142 #42D571
tetradic
#7142D5 #D5425C #A6D542 #42D5BB
square
#7142D5 #D5425C #A6D542 #42D5BB
split-complementary
#7142D5 #D5BB42 #5CD542
monochromatic
#3C1C80 #5428B2 #7142D5 #9774E0 #BCA6EB

Accessibility & contrast

On white

6.10
#7142D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7142D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7142D5#FFFFFF#000000##FFFFFF
##7142D51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#526787
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7142d5;
/* rgb */ color: rgb(113, 66, 213);
/* oklch */ color: oklch(51.9% 0.212 292.0);
Tailwind
colors: {
  custom: {
    50: '#a27ae3',
    500: '#7142d5',
    950: '#000000',
  },
}
SCSS
$custom: #7142d5;
$custom-light: #a27ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d5",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 259.184,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51944,
    "c": 0.21171,
    "h": 292
  },
  "luminance": 0.12211
}

Semantic roles & 50–950 ramp

primary
#7142D5
secondary
#C5D89A
accent
#E741B2
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142D5

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

Preview Lab → · Contrast checker → · Palette generator →

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