#7142DB#7142DB

#7142DB is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.219 H 291.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7142DB
RGBrgb(113, 66, 219)
HSLhsl(258, 68%, 56%)
HSVhsv(258, 70%, 86%)
CMYKcmyk(48.4%, 69.9%, 0%, 14.1%)
CIE-LABlab(42.03, 54.71, -71.14)
CIE-LCHlch(42.03, 89.74, 307.56°)
OKLaboklab(52.44% 0.0783 -0.204)
OKLCHoklch(52.44% 0.219 291)
XYZxyz(21.5408, 12.5208, 68.2859)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142DB #ACDB42
analogous
#425FDB #7142DB #BD42DB
triadic
#7142DB #DB7142 #42DB71
tetradic
#7142DB #DB425F #ACDB42 #42DBBD
square
#7142DB #DB425F #ACDB42 #42DBBD
split-complementary
#7142DB #DBBD42 #5FDB42
monochromatic
#3C1A89 #5324BC #7142DB #9875E5 #BEA9EF

Accessibility & contrast

On white

5.99
#7142DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7142DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142DB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142DB#FFFFFF#000000##FFFFFF
##7142DB1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#4E698A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7142db;
/* rgb */ color: rgb(113, 66, 219);
/* oklch */ color: oklch(52.4% 0.219 291.0);
Tailwind
colors: {
  custom: {
    50: '#a37ae7',
    500: '#7142db',
    950: '#000000',
  },
}
SCSS
$custom: #7142db;
$custom-light: #a37ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7142db",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 258.431,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52438,
    "c": 0.21856,
    "h": 291
  },
  "luminance": 0.12522
}

Semantic roles & 50–950 ramp

primary
#7142DB
secondary
#C9DC9D
accent
#EB3DB5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7142DB

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

Preview Lab → · Contrast checker → · Palette generator →

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