#7142D9#7142D9

#7142D9 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.216 H 291.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7142D9
RGBrgb(113, 66, 217)
HSLhsl(259, 67%, 55%)
HSVhsv(259, 70%, 85%)
CMYKcmyk(47.9%, 69.6%, 0%, 14.9%)
CIE-LABlab(41.87, 54.17, -70.26)
CIE-LCHlch(41.87, 88.71, 307.63°)
OKLaboklab(52.27% 0.0787 -0.2015)
OKLCHoklch(52.27% 0.216 291.3)
XYZxyz(21.2791, 12.4161, 66.9075)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142D9 #AAD942
analogous
#425FD9 #7142D9 #BC42D9
triadic
#7142D9 #D97142 #42D971
tetradic
#7142D9 #D9425F #AAD942 #42D9BC
square
#7142D9 #D9425F #AAD942 #42D9BC
split-complementary
#7142D9 #D9BC42 #5FD942
monochromatic
#3C1B86 #5325B9 #7142D9 #9775E3 #BEA8ED

Accessibility & contrast

On white

6.03
#7142D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7142D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142D9
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142D9#FFFFFF#000000##FFFFFF
##7142D91.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#0060D6
Tritanopia (blue-blind)
#4F6989
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7142d9;
/* rgb */ color: rgb(113, 66, 217);
/* oklch */ color: oklch(52.3% 0.216 291.3);
Tailwind
colors: {
  custom: {
    50: '#a37ae6',
    500: '#7142d9',
    950: '#000000',
  },
}
SCSS
$custom: #7142d9;
$custom-light: #a37ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#7142d9",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 258.675,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.52272,
    "c": 0.21629,
    "h": 291.3
  },
  "luminance": 0.12417
}

Semantic roles & 50–950 ramp

primary
#7142D9
secondary
#C7DB9C
accent
#E93EB4
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142D9

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

Preview Lab → · Contrast checker → · Palette generator →

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