#7042CC#7042CC

#7042CC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.201 H 293.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7042CC
RGBrgb(112, 66, 204)
HSLhsl(260, 58%, 53%)
HSVhsv(260, 68%, 80%)
CMYKcmyk(45.1%, 67.6%, 0%, 20%)
CIE-LABlab(40.74, 50.48, -64.63)
CIE-LCHlch(40.74, 82.00, 307.99°)
OKLaboklab(51.12% 0.0795 -0.1849)
OKLCHoklch(51.12% 0.201 293.2)
XYZxyz(19.5264, 11.7002, 58.3446)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042CC #9ECC42
analogous
#4259CC #7042CC #B542CC
triadic
#7042CC #CC7042 #42CC70
tetradic
#7042CC #CC4259 #9ECC42 #42CCB5
square
#7042CC #CC4259 #9ECC42 #42CCB5
split-complementary
#7042CC #CCB542 #59CC42
monochromatic
#3C1F74 #542CA4 #7042CC #9472D9 #B9A2E6

Accessibility & contrast

On white

6.29
#7042CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7042CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042CC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042CC#FFFFFF#000000##FFFFFF
##7042CC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#556482
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7042cc;
/* rgb */ color: rgb(112, 66, 204);
/* oklch */ color: oklch(51.1% 0.201 293.2);
Tailwind
colors: {
  custom: {
    50: '#a07add',
    500: '#7042cc',
    950: '#000000',
  },
}
SCSS
$custom: #7042cc;
$custom-light: #a07add;
$custom-dark: #000000;
JSON
{
  "hex": "#7042cc",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 260,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51117,
    "c": 0.2013,
    "h": 293.2
  },
  "luminance": 0.11701
}

Semantic roles & 50–950 ramp

primary
#7042CC
secondary
#BFD397
accent
#E147AE
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7042CC

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

Preview Lab → · Contrast checker → · Palette generator →

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