#7042CF#7042CF

#7042CF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.205 H 292.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7042CF
RGBrgb(112, 66, 207)
HSLhsl(260, 59%, 54%)
HSVhsv(260, 68%, 81%)
CMYKcmyk(45.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.97, 51.29, -65.98)
CIE-LCHlch(40.97, 83.57, 307.86°)
OKLaboklab(51.36% 0.079 -0.1889)
OKLCHoklch(51.36% 0.205 292.7)
XYZxyz(19.8897, 11.8455, 60.2578)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042CF #A1CF42
analogous
#425ACF #7042CF #B642CF
triadic
#7042CF #CF7042 #42CF70
tetradic
#7042CF #CF425A #A1CF42 #42CFB6
square
#7042CF #CF425A #A1CF42 #42CFB6
split-complementary
#7042CF #CFB642 #5ACF42
monochromatic
#3C1F78 #542BA9 #7042CF #9573DB #BAA4E8

Accessibility & contrast

On white

6.23
#7042CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7042CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042CF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042CF#FFFFFF#000000##FFFFFF
##7042CF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#546583
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7042cf;
/* rgb */ color: rgb(112, 66, 207);
/* oklch */ color: oklch(51.4% 0.205 292.7);
Tailwind
colors: {
  custom: {
    50: '#a17adf',
    500: '#7042cf',
    950: '#000000',
  },
}
SCSS
$custom: #7042cf;
$custom-light: #a17adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7042cf",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 259.574,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51358,
    "c": 0.20478,
    "h": 292.7
  },
  "luminance": 0.11846
}

Semantic roles & 50–950 ramp

primary
#7042CF
secondary
#C1D598
accent
#E345AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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