#7142BF#7142BF

#7142BF is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.186 H 296.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#7142BF
RGBrgb(113, 66, 191)
HSLhsl(263, 49%, 50%)
HSVhsv(263, 65%, 75%)
CMYKcmyk(40.8%, 65.4%, 0%, 25.1%)
CIE-LABlab(39.86, 47.19, -58.48)
CIE-LCHlch(39.86, 75.14, 308.90°)
OKLaboklab(50.21% 0.0826 -0.1668)
OKLCHoklch(50.21% 0.186 296.3)
XYZxyz(18.1598, 11.1684, 50.4790)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142BF #90BF42
analogous
#4251BF #7142BF #AF42BF
triadic
#7142BF #BF7142 #42BF71
tetradic
#7142BF #BF4251 #90BF42 #42BFAF
square
#7142BF #BF4251 #90BF42 #42BFAF
split-complementary
#7142BF #BFAF42 #51BF42
monochromatic
#3B2265 #563292 #7142BF #9370CE #B69DDE

Accessibility & contrast

On white

6.49
#7142BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7142BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142BF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142BF#FFFFFF#000000##FFFFFF
##7142BF1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#5D5F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7142bf;
/* rgb */ color: rgb(113, 66, 191);
/* oklch */ color: oklch(50.2% 0.186 296.3);
Tailwind
colors: {
  custom: {
    50: '#a079d3',
    500: '#7142bf',
    950: '#000000',
  },
}
SCSS
$custom: #7142bf;
$custom-light: #a079d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7142bf",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 262.56,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50207,
    "c": 0.18615,
    "h": 296.3
  },
  "luminance": 0.11169
}

Semantic roles & 50–950 ramp

primary
#7142BF
secondary
#B5CA93
accent
#D94FA5
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7142BF

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

Preview Lab → · Contrast checker → · Palette generator →

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