#7042C9#7042C9

#7042C9 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.198 H 293.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7042C9
RGBrgb(112, 66, 201)
HSLhsl(260, 56%, 52%)
HSVhsv(260, 67%, 79%)
CMYKcmyk(44.3%, 67.2%, 0%, 21.2%)
CIE-LABlab(40.50, 49.67, -63.26)
CIE-LCHlch(40.50, 80.43, 308.14°)
OKLaboklab(50.88% 0.0799 -0.1809)
OKLCHoklch(50.88% 0.198 293.8)
XYZxyz(19.1701, 11.5577, 56.4678)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042C9 #9BC942
analogous
#4258C9 #7042C9 #B342C9
triadic
#7042C9 #C97042 #42C970
tetradic
#7042C9 #C94258 #9BC942 #42C9B3
square
#7042C9 #C94258 #9BC942 #42C9B3
split-complementary
#7042C9 #C9B342 #58C942
monochromatic
#3C2070 #552EA0 #7042C9 #9472D7 #B8A1E4

Accessibility & contrast

On white

6.34
#7042C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7042C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042C9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042C9#FFFFFF#000000##FFFFFF
##7042C91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#576380
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7042c9;
/* rgb */ color: rgb(112, 66, 201);
/* oklch */ color: oklch(50.9% 0.198 293.8);
Tailwind
colors: {
  custom: {
    50: '#a079da',
    500: '#7042c9',
    950: '#000000',
  },
}
SCSS
$custom: #7042c9;
$custom-light: #a079da;
$custom-dark: #000000;
JSON
{
  "hex": "#7042c9",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 260.444,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50879,
    "c": 0.19781,
    "h": 293.8
  },
  "luminance": 0.11558
}

Semantic roles & 50–950 ramp

primary
#7042C9
secondary
#BDD196
accent
#DF49AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7042C9

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

Preview Lab → · Contrast checker → · Palette generator →

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