#7042BC#7042BC

#7042BC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.183 H 296.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7042BC
RGBrgb(112, 66, 188)
HSLhsl(263, 48%, 50%)
HSVhsv(263, 65%, 74%)
CMYKcmyk(40.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(39.53, 46.19, -57.26)
CIE-LCHlch(39.53, 73.57, 308.89°)
OKLaboklab(49.88% 0.0815 -0.1633)
OKLCHoklch(49.88% 0.183 296.5)
XYZxyz(17.7050, 10.9717, 48.7521)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042BC #8EBC42
analogous
#4251BC #7042BC #AD42BC
triadic
#7042BC #BC7042 #42BC70
tetradic
#7042BC #BC4251 #8EBC42 #42BCAD
square
#7042BC #BC4251 #8EBC42 #42BCAD
split-complementary
#7042BC #BCAD42 #51BC42
monochromatic
#3A2261 #55328F #7042BC #926FCC #B49CDC

Accessibility & contrast

On white

6.57
#7042BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7042BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042BC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042BC#FFFFFF#000000##FFFFFF
##7042BC1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#5D5E79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7042bc;
/* rgb */ color: rgb(112, 66, 188);
/* oklch */ color: oklch(49.9% 0.183 296.5);
Tailwind
colors: {
  custom: {
    50: '#9f79d1',
    500: '#7042bc',
    950: '#000000',
  },
}
SCSS
$custom: #7042bc;
$custom-light: #9f79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7042bc",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 262.623,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49875,
    "c": 0.18251,
    "h": 296.5
  },
  "luminance": 0.10972
}

Semantic roles & 50–950 ramp

primary
#7042BC
secondary
#B4C991
accent
#D850A5
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7042BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7042BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva