#7142DC#7142DC

#7142DC is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.220 H 290.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7142DC
RGBrgb(113, 66, 220)
HSLhsl(258, 69%, 56%)
HSVhsv(258, 70%, 86%)
CMYKcmyk(48.6%, 70%, 0%, 13.7%)
CIE-LABlab(42.11, 54.98, -71.58)
CIE-LCHlch(42.11, 90.25, 307.53°)
OKLaboklab(52.52% 0.0781 -0.2053)
OKLCHoklch(52.52% 0.22 290.8)
XYZxyz(21.6729, 12.5736, 68.9813)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142DC #ADDC42
analogous
#4260DC #7142DC #BE42DC
triadic
#7142DC #DC7142 #42DC71
tetradic
#7142DC #DC4260 #ADDC42 #42DCBE
square
#7142DC #DC4260 #ADDC42 #42DCBE
split-complementary
#7142DC #DCBE42 #60DC42
monochromatic
#3C1A8A #5223BE #7142DC #9876E6 #BFA9EF

Accessibility & contrast

On white

5.97
#7142DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7142DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142DC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142DC#FFFFFF#000000##FFFFFF
##7142DC1.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#4E6A8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7142dc;
/* rgb */ color: rgb(113, 66, 220);
/* oklch */ color: oklch(52.5% 0.220 290.8);
Tailwind
colors: {
  custom: {
    50: '#a37ae8',
    500: '#7142dc',
    950: '#000000',
  },
}
SCSS
$custom: #7142dc;
$custom-light: #a37ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#7142dc",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 258.312,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52521,
    "c": 0.2197,
    "h": 290.8
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#7142DC
secondary
#C9DD9D
accent
#EC3CB6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142DC

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

Preview Lab → · Contrast checker → · Palette generator →

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