#7042BE#7042BE

#7042BE is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.0% C 0.185 H 296.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7042BE
RGBrgb(112, 66, 190)
HSLhsl(262, 49%, 50%)
HSVhsv(262, 65%, 75%)
CMYKcmyk(41.1%, 65.3%, 0%, 25.5%)
CIE-LABlab(39.68, 46.72, -58.19)
CIE-LCHlch(39.68, 74.63, 308.76°)
OKLaboklab(50.03% 0.0813 -0.166)
OKLCHoklch(50.03% 0.185 296.1)
XYZxyz(17.9221, 11.0585, 49.8955)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042BE #90BE42
analogous
#4252BE #7042BE #AE42BE
triadic
#7042BE #BE7042 #42BE70
tetradic
#7042BE #BE4252 #90BE42 #42BEAE
square
#7042BE #BE4252 #90BE42 #42BEAE
split-complementary
#7042BE #BEAE42 #52BE42
monochromatic
#3A2263 #553291 #7042BE #9270CE #B59DDD

Accessibility & contrast

On white

6.54
#7042BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7042BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042BE
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042BE#FFFFFF#000000##FFFFFF
##7042BE1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#5C5F7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7042be;
/* rgb */ color: rgb(112, 66, 190);
/* oklch */ color: oklch(50.0% 0.185 296.1);
Tailwind
colors: {
  custom: {
    50: '#9f79d2',
    500: '#7042be',
    950: '#000000',
  },
}
SCSS
$custom: #7042be;
$custom-light: #9f79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7042be",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 262.258,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50026,
    "c": 0.18488,
    "h": 296.1
  },
  "luminance": 0.11059
}

Semantic roles & 50–950 ramp

primary
#7042BE
secondary
#B5CA92
accent
#D84FA6
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7042BE

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

Preview Lab → · Contrast checker → · Palette generator →

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