#7142B1#7142B1

#7142B1 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.170 H 299.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7142B1
RGBrgb(113, 66, 177)
HSLhsl(265, 46%, 48%)
HSVhsv(265, 63%, 69%)
CMYKcmyk(36.2%, 62.7%, 0%, 30.6%)
CIE-LABlab(38.87, 43.51, -51.85)
CIE-LCHlch(38.87, 67.69, 310.00°)
OKLaboklab(49.17% 0.0838 -0.1474)
OKLCHoklch(49.17% 0.17 299.6)
XYZxyz(16.6921, 10.5813, 42.7494)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142B1 #82B142
analogous
#424BB1 #7142B1 #A842B1
triadic
#7142B1 #B17142 #42B171
tetradic
#7142B1 #B1424B #82B142 #42B1A8
square
#7142B1 #B1424B #82B142 #42B1A8
split-complementary
#7142B1 #B1A842 #4BB142
monochromatic
#382158 #553184 #7142B1 #9169C7 #B296D8

Accessibility & contrast

On white

6.74
#7142B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7142B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142B1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142B1#FFFFFF#000000##FFFFFF
##7142B11.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#155BAF
Tritanopia (blue-blind)
#635A73
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7142b1;
/* rgb */ color: rgb(113, 66, 177);
/* oklch */ color: oklch(49.2% 0.170 299.6);
Tailwind
colors: {
  custom: {
    50: '#9e79c9',
    500: '#7142b1',
    950: '#000000',
  },
}
SCSS
$custom: #7142b1;
$custom-light: #9e79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7142b1",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 265.405,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49171,
    "c": 0.16952,
    "h": 299.6
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#7142B1
secondary
#ACC38B
accent
#D5529E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7142B1

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

Preview Lab → · Contrast checker → · Palette generator →

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