#7142BB#7142BB

#7142BB is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.181 H 297.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7142BB
RGBrgb(113, 66, 187)
HSLhsl(263, 48%, 50%)
HSVhsv(263, 65%, 73%)
CMYKcmyk(39.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(39.57, 46.13, -56.60)
CIE-LCHlch(39.57, 73.02, 309.18°)
OKLaboklab(49.91% 0.083 -0.1613)
OKLCHoklch(49.91% 0.181 297.2)
XYZxyz(17.7256, 10.9947, 48.1924)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142BB #8CBB42
analogous
#424FBB #7142BB #AE42BB
triadic
#7142BB #BB7142 #42BB71
tetradic
#7142BB #BB424F #8CBB42 #42BBAE
square
#7142BB #BB424F #8CBB42 #42BBAE
split-complementary
#7142BB #BBAE42 #4FBB42
monochromatic
#3A2261 #56328E #7142BB #936ECC #B59CDC

Accessibility & contrast

On white

6.56
#7142BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7142BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142BB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142BB#FFFFFF#000000##FFFFFF
##7142BB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#5F5E78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7142bb;
/* rgb */ color: rgb(113, 66, 187);
/* oklch */ color: oklch(49.9% 0.181 297.2);
Tailwind
colors: {
  custom: {
    50: '#9f79d0',
    500: '#7142bb',
    950: '#000000',
  },
}
SCSS
$custom: #7142bb;
$custom-light: #9f79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7142bb",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 263.306,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49905,
    "c": 0.18143,
    "h": 297.2
  },
  "luminance": 0.10995
}

Semantic roles & 50–950 ramp

primary
#7142BB
secondary
#B3C891
accent
#D750A3
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7142BB

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

Preview Lab → · Contrast checker → · Palette generator →

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