#7142BC#7142BC

#7142BC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.183 H 297.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7142BC
RGBrgb(113, 66, 188)
HSLhsl(263, 48%, 50%)
HSVhsv(263, 65%, 74%)
CMYKcmyk(39.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(39.64, 46.40, -57.07)
CIE-LCHlch(39.64, 73.55, 309.11°)
OKLaboklab(49.98% 0.0829 -0.1627)
OKLCHoklch(49.98% 0.183 297)
XYZxyz(17.8330, 11.0377, 48.7581)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142BC #8DBC42
analogous
#4250BC #7142BC #AE42BC
triadic
#7142BC #BC7142 #42BC71
tetradic
#7142BC #BC4250 #8DBC42 #42BCAE
square
#7142BC #BC4250 #8DBC42 #42BCAE
split-complementary
#7142BC #BCAE42 #50BC42
monochromatic
#3B2261 #56328F #7142BC #936FCC #B59CDC

Accessibility & contrast

On white

6.55
#7142BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7142BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142BC
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142BC#FFFFFF#000000##FFFFFF
##7142BC1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#5F5E79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7142bc;
/* rgb */ color: rgb(113, 66, 188);
/* oklch */ color: oklch(50.0% 0.183 297.0);
Tailwind
colors: {
  custom: {
    50: '#9f79d1',
    500: '#7142bc',
    950: '#000000',
  },
}
SCSS
$custom: #7142bc;
$custom-light: #9f79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7142bc",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 263.115,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4998,
    "c": 0.18261,
    "h": 297
  },
  "luminance": 0.11038
}

Semantic roles & 50–950 ramp

primary
#7142BC
secondary
#B3C991
accent
#D850A3
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7142BC

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

Preview Lab → · Contrast checker → · Palette generator →

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