#7142B2#7142B2

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

Color values

HEX#7142B2
RGBrgb(113, 66, 178)
HSLhsl(265, 46%, 48%)
HSVhsv(265, 63%, 70%)
CMYKcmyk(36.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(38.94, 43.77, -52.33)
CIE-LCHlch(38.94, 68.22, 309.91°)
OKLaboklab(49.24% 0.0837 -0.1488)
OKLCHoklch(49.24% 0.171 299.4)
XYZxyz(16.7922, 10.6213, 43.2763)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142B2 #83B242
analogous
#424BB2 #7142B2 #A942B2
triadic
#7142B2 #B27142 #42B271
tetradic
#7142B2 #B2424B #83B242 #42B2A9
square
#7142B2 #B2424B #83B242 #42B2A9
split-complementary
#7142B2 #B2A942 #4BB242
monochromatic
#382159 #553185 #7142B2 #916AC8 #B296D8

Accessibility & contrast

On white

6.72
#7142B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7142B2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142B2#FFFFFF#000000##FFFFFF
##7142B21.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#125BB0
Tritanopia (blue-blind)
#635B74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7142b2;
/* rgb */ color: rgb(113, 66, 178);
/* oklch */ color: oklch(49.2% 0.171 299.4);
Tailwind
colors: {
  custom: {
    50: '#9e79ca',
    500: '#7142b2',
    950: '#000000',
  },
}
SCSS
$custom: #7142b2;
$custom-light: #9e79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7142b2",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 265.179,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49243,
    "c": 0.17072,
    "h": 299.4
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#7142B2
secondary
#ACC48C
accent
#D6529E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7142B2

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

Preview Lab → · Contrast checker → · Palette generator →

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