#7142D1#7142D1

#7142D1 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.207 H 292.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7142D1
RGBrgb(113, 66, 209)
HSLhsl(260, 61%, 54%)
HSVhsv(260, 68%, 82%)
CMYKcmyk(45.9%, 68.4%, 0%, 18%)
CIE-LABlab(41.23, 52.01, -66.70)
CIE-LCHlch(41.23, 84.58, 307.94°)
OKLaboklab(51.62% 0.0801 -0.191)
OKLCHoklch(51.62% 0.207 292.7)
XYZxyz(20.2637, 12.0099, 61.5597)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D1 #A2D142
analogous
#425BD1 #7142D1 #B842D1
triadic
#7142D1 #D17142 #42D171
tetradic
#7142D1 #D1425B #A2D142 #42D1B8
square
#7142D1 #D1425B #A2D142 #42D1B8
split-complementary
#7142D1 #D1B842 #5BD142
monochromatic
#3C1E7B #552AAC #7142D1 #9673DD #BBA4E9

Accessibility & contrast

On white

6.17
#7142D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7142D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142D1
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142D1#FFFFFF#000000##FFFFFF
##7142D11.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#005ECE
Tritanopia (blue-blind)
#546684
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7142d1;
/* rgb */ color: rgb(113, 66, 209);
/* oklch */ color: oklch(51.6% 0.207 292.7);
Tailwind
colors: {
  custom: {
    50: '#a27ae0',
    500: '#7142d1',
    950: '#000000',
  },
}
SCSS
$custom: #7142d1;
$custom-light: #a27ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d1",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 259.72,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51619,
    "c": 0.20712,
    "h": 292.7
  },
  "luminance": 0.12011
}

Semantic roles & 50–950 ramp

primary
#7142D1
secondary
#C2D699
accent
#E444AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142D1

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

Preview Lab → · Contrast checker → · Palette generator →

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