#7142D2#7142D2

#7142D2 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.208 H 292.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7142D2
RGBrgb(113, 66, 210)
HSLhsl(260, 62%, 54%)
HSVhsv(260, 69%, 82%)
CMYKcmyk(46.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(41.31, 52.28, -67.15)
CIE-LCHlch(41.31, 85.10, 307.90°)
OKLaboklab(51.7% 0.0799 -0.1923)
OKLCHoklch(51.7% 0.208 292.6)
XYZxyz(20.3879, 12.0596, 62.2138)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D2 #A3D242
analogous
#425BD2 #7142D2 #B942D2
triadic
#7142D2 #D27142 #42D271
tetradic
#7142D2 #D2425B #A3D242 #42D2B9
square
#7142D2 #D2425B #A3D242 #42D2B9
split-complementary
#7142D2 #D2B942 #5BD242
monochromatic
#3C1E7C #5429AD #7142D2 #9673DE #BBA5EA

Accessibility & contrast

On white

6.15
#7142D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7142D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142D2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142D2#FFFFFF#000000##FFFFFF
##7142D21.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#546685
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7142d2;
/* rgb */ color: rgb(113, 66, 210);
/* oklch */ color: oklch(51.7% 0.208 292.6);
Tailwind
colors: {
  custom: {
    50: '#a27ae1',
    500: '#7142d2',
    950: '#000000',
  },
}
SCSS
$custom: #7142d2;
$custom-light: #a27ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d2",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 259.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.517,
    "c": 0.20827,
    "h": 292.6
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#7142D2
secondary
#C3D799
accent
#E543B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142D2

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

Preview Lab → · Contrast checker → · Palette generator →

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