#7042CD#7042CD

#7042CD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.202 H 293.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7042CD
RGBrgb(112, 66, 205)
HSLhsl(260, 58%, 53%)
HSVhsv(260, 68%, 80%)
CMYKcmyk(45.4%, 67.8%, 0%, 19.6%)
CIE-LABlab(40.81, 50.75, -65.08)
CIE-LCHlch(40.81, 82.53, 307.95°)
OKLaboklab(51.2% 0.0793 -0.1863)
OKLCHoklch(51.2% 0.202 293.1)
XYZxyz(19.6467, 11.7483, 58.9783)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042CD #9FCD42
analogous
#4259CD #7042CD #B542CD
triadic
#7042CD #CD7042 #42CD70
tetradic
#7042CD #CD4259 #9FCD42 #42CDB5
square
#7042CD #CD4259 #9FCD42 #42CDB5
split-complementary
#7042CD #CDB542 #59CD42
monochromatic
#3C1F76 #542CA6 #7042CD #9572DA #B9A3E7

Accessibility & contrast

On white

6.27
#7042CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7042CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042CD
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042CD#FFFFFF#000000##FFFFFF
##7042CD1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7042cd;
/* rgb */ color: rgb(112, 66, 205);
/* oklch */ color: oklch(51.2% 0.202 293.1);
Tailwind
colors: {
  custom: {
    50: '#a17add',
    500: '#7042cd',
    950: '#000000',
  },
}
SCSS
$custom: #7042cd;
$custom-light: #a17add;
$custom-dark: #000000;
JSON
{
  "hex": "#7042cd",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 259.856,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51197,
    "c": 0.20246,
    "h": 293.1
  },
  "luminance": 0.11749
}

Semantic roles & 50–950 ramp

primary
#7042CD
secondary
#C0D397
accent
#E146AE
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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