#7142B8#7142B8

#7142B8 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.178 H 297.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7142B8
RGBrgb(113, 66, 184)
HSLhsl(264, 47%, 49%)
HSVhsv(264, 64%, 72%)
CMYKcmyk(38.6%, 64.1%, 0%, 27.8%)
CIE-LABlab(39.36, 45.34, -55.19)
CIE-LCHlch(39.36, 71.43, 309.41°)
OKLaboklab(49.68% 0.0833 -0.1572)
OKLCHoklch(49.68% 0.178 297.9)
XYZxyz(17.4078, 10.8676, 46.5186)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142B8 #89B842
analogous
#424EB8 #7142B8 #AC42B8
triadic
#7142B8 #B87142 #42B871
tetradic
#7142B8 #B8424E #89B842 #42B8AC
square
#7142B8 #B8424E #89B842 #42B8AC
split-complementary
#7142B8 #B8AC42 #4EB842
monochromatic
#3A225E #55328B #7142B8 #926DCB #B49ADB

Accessibility & contrast

On white

6.62
#7142B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7142B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142B8
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142B8#FFFFFF#000000##FFFFFF
##7142B81.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#605D77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7142b8;
/* rgb */ color: rgb(113, 66, 184);
/* oklch */ color: oklch(49.7% 0.178 297.9);
Tailwind
colors: {
  custom: {
    50: '#9f79ce',
    500: '#7142b8',
    950: '#000000',
  },
}
SCSS
$custom: #7142b8;
$custom-light: #9f79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7142b8",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 263.898,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49682,
    "c": 0.17787,
    "h": 297.9
  },
  "luminance": 0.10868
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7142B8

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

Preview Lab → · Contrast checker → · Palette generator →

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