#7142D3#7142D3

#7142D3 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.209 H 292.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7142D3
RGBrgb(113, 66, 211)
HSLhsl(259, 62%, 54%)
HSVhsv(259, 69%, 83%)
CMYKcmyk(46.4%, 68.7%, 0%, 17.3%)
CIE-LABlab(41.39, 52.55, -67.60)
CIE-LCHlch(41.39, 85.62, 307.86°)
OKLaboklab(51.78% 0.0797 -0.1936)
OKLCHoklch(51.78% 0.209 292.4)
XYZxyz(20.5129, 12.1096, 62.8720)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D3 #A4D342
analogous
#425CD3 #7142D3 #B942D3
triadic
#7142D3 #D37142 #42D371
tetradic
#7142D3 #D3425C #A4D342 #42D3B9
square
#7142D3 #D3425C #A4D342 #42D3B9
split-complementary
#7142D3 #D3B942 #5CD342
monochromatic
#3C1D7D #5429AF #7142D3 #9674DF #BCA5EA

Accessibility & contrast

On white

6.14
#7142D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7142D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7142D3#FFFFFF#000000##FFFFFF
##7142D31.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#005FD0
Tritanopia (blue-blind)
#536685
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7142d3;
/* rgb */ color: rgb(113, 66, 211);
/* oklch */ color: oklch(51.8% 0.209 292.4);
Tailwind
colors: {
  custom: {
    50: '#a27ae2',
    500: '#7142d3',
    950: '#000000',
  },
}
SCSS
$custom: #7142d3;
$custom-light: #a27ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d3",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 259.448,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51781,
    "c": 0.20942,
    "h": 292.4
  },
  "luminance": 0.1211
}

Semantic roles & 50–950 ramp

primary
#7142D3
secondary
#C3D79A
accent
#E542B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142D3

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

Preview Lab → · Contrast checker → · Palette generator →

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