#7142BD#7142BD

#7142BD is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.184 H 296.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7142BD
RGBrgb(113, 66, 189)
HSLhsl(263, 48%, 50%)
HSVhsv(263, 65%, 74%)
CMYKcmyk(40.2%, 65.1%, 0%, 25.9%)
CIE-LABlab(39.72, 46.66, -57.54)
CIE-LCHlch(39.72, 74.08, 309.04°)
OKLaboklab(50.06% 0.0828 -0.1641)
OKLCHoklch(50.06% 0.184 296.8)
XYZxyz(17.9412, 11.0809, 49.3278)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142BD #8EBD42
analogous
#4250BD #7142BD #AF42BD
triadic
#7142BD #BD7142 #42BD71
tetradic
#7142BD #BD4250 #8EBD42 #42BDAF
square
#7142BD #BD4250 #8EBD42 #42BDAF
split-complementary
#7142BD #BDAF42 #50BD42
monochromatic
#3B2262 #563290 #7142BD #936FCD #B59DDD

Accessibility & contrast

On white

6.53
#7142BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7142BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142BD
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142BD#FFFFFF#000000##FFFFFF
##7142BD1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#5E5E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7142bd;
/* rgb */ color: rgb(113, 66, 189);
/* oklch */ color: oklch(50.1% 0.184 296.8);
Tailwind
colors: {
  custom: {
    50: '#9f79d2',
    500: '#7142bd',
    950: '#000000',
  },
}
SCSS
$custom: #7142bd;
$custom-light: #9f79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7142bd",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 262.927,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.50056,
    "c": 0.1838,
    "h": 296.8
  },
  "luminance": 0.11081
}

Semantic roles & 50–950 ramp

primary
#7142BD
secondary
#B4C992
accent
#D850A4
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7142BD

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

Preview Lab → · Contrast checker → · Palette generator →

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