#7142BA#7142BA

#7142BA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.8% C 0.180 H 297.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7142BA
RGBrgb(113, 66, 186)
HSLhsl(264, 48%, 49%)
HSVhsv(264, 65%, 73%)
CMYKcmyk(39.2%, 64.5%, 0%, 27.1%)
CIE-LABlab(39.50, 45.87, -56.13)
CIE-LCHlch(39.50, 72.49, 309.25°)
OKLaboklab(49.83% 0.0831 -0.1599)
OKLCHoklch(49.83% 0.18 297.4)
XYZxyz(17.6189, 10.9520, 47.6305)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142BA #8BBA42
analogous
#424FBA #7142BA #AD42BA
triadic
#7142BA #BA7142 #42BA71
tetradic
#7142BA #BA424F #8BBA42 #42BAAD
square
#7142BA #BA424F #8BBA42 #42BAAD
split-complementary
#7142BA #BAAD42 #4FBA42
monochromatic
#3A2260 #56328D #7142BA #926ECB #B49BDB

Accessibility & contrast

On white

6.58
#7142BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7142BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142BA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142BA#FFFFFF#000000##FFFFFF
##7142BA1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#5F5D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7142ba;
/* rgb */ color: rgb(113, 66, 186);
/* oklch */ color: oklch(49.8% 0.180 297.4);
Tailwind
colors: {
  custom: {
    50: '#9f79cf',
    500: '#7142ba',
    950: '#000000',
  },
}
SCSS
$custom: #7142ba;
$custom-light: #9f79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7142ba",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 263.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4983,
    "c": 0.18024,
    "h": 297.4
  },
  "luminance": 0.10952
}

Semantic roles & 50–950 ramp

primary
#7142BA
secondary
#B2C890
accent
#D751A2
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7142BA

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

Preview Lab → · Contrast checker → · Palette generator →

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