#7042D0#7042D0

#7042D0 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.206 H 292.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7042D0
RGBrgb(112, 66, 208)
HSLhsl(259, 60%, 54%)
HSVhsv(259, 68%, 82%)
CMYKcmyk(46.2%, 68.3%, 0%, 18.4%)
CIE-LABlab(41.05, 51.56, -66.43)
CIE-LCHlch(41.05, 84.09, 307.82°)
OKLaboklab(51.44% 0.0788 -0.1902)
OKLCHoklch(51.44% 0.206 292.5)
XYZxyz(20.0123, 11.8946, 60.9037)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042D0 #A2D042
analogous
#425BD0 #7042D0 #B742D0
triadic
#7042D0 #D07042 #42D070
tetradic
#7042D0 #D0425B #A2D042 #42D0B7
square
#7042D0 #D0425B #A2D042 #42D0B7
split-complementary
#7042D0 #D0B742 #5BD042
monochromatic
#3C1E79 #542AAA #7042D0 #9573DC #BAA4E8

Accessibility & contrast

On white

6.21
#7042D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7042D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042D0
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042D0#FFFFFF#000000##FFFFFF
##7042D01.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D4
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#536584
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7042d0;
/* rgb */ color: rgb(112, 66, 208);
/* oklch */ color: oklch(51.4% 0.206 292.5);
Tailwind
colors: {
  custom: {
    50: '#a17adf',
    500: '#7042d0',
    950: '#000000',
  },
}
SCSS
$custom: #7042d0;
$custom-light: #a17adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7042d0",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 259.437,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51438,
    "c": 0.20594,
    "h": 292.5
  },
  "luminance": 0.11895
}

Semantic roles & 50–950 ramp

primary
#7042D0
secondary
#C2D599
accent
#E344B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7042D0

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

Preview Lab → · Contrast checker → · Palette generator →

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