#7142BE#7142BE

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

Color values

HEX#7142BE
RGBrgb(113, 66, 190)
HSLhsl(263, 49%, 50%)
HSVhsv(263, 65%, 75%)
CMYKcmyk(40.5%, 65.3%, 0%, 25.5%)
CIE-LABlab(39.79, 46.93, -58.01)
CIE-LCHlch(39.79, 74.61, 308.97°)
OKLaboklab(50.13% 0.0827 -0.1655)
OKLCHoklch(50.13% 0.185 296.5)
XYZxyz(18.0501, 11.1245, 49.9015)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142BE #8FBE42
analogous
#4251BE #7142BE #AF42BE
triadic
#7142BE #BE7142 #42BE71
tetradic
#7142BE #BE4251 #8FBE42 #42BEAF
square
#7142BE #BE4251 #8FBE42 #42BEAF
split-complementary
#7142BE #BEAF42 #51BE42
monochromatic
#3B2263 #563291 #7142BE #9370CE #B59DDD

Accessibility & contrast

On white

6.51
#7142BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7142BE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142BE#FFFFFF#000000##FFFFFF
##7142BE1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#5E5F7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7142be;
/* rgb */ color: rgb(113, 66, 190);
/* oklch */ color: oklch(50.1% 0.185 296.5);
Tailwind
colors: {
  custom: {
    50: '#9f79d2',
    500: '#7142be',
    950: '#000000',
  },
}
SCSS
$custom: #7142be;
$custom-light: #9f79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7142be",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 262.742,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50131,
    "c": 0.18497,
    "h": 296.5
  },
  "luminance": 0.11125
}

Semantic roles & 50–950 ramp

primary
#7142BE
secondary
#B5CA92
accent
#D84FA4
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7142BE

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

Preview Lab → · Contrast checker → · Palette generator →

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