#7042D3#7042D3

#7042D3 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.209 H 292.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7042D3
RGBrgb(112, 66, 211)
HSLhsl(259, 62%, 54%)
HSVhsv(259, 69%, 83%)
CMYKcmyk(46.9%, 68.7%, 0%, 17.3%)
CIE-LABlab(41.29, 52.37, -67.77)
CIE-LCHlch(41.29, 85.65, 307.70°)
OKLaboklab(51.68% 0.0783 -0.1942)
OKLCHoklch(51.68% 0.209 292)
XYZxyz(20.3849, 12.0436, 62.8660)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042D3 #A5D342
analogous
#425DD3 #7042D3 #B842D3
triadic
#7042D3 #D37042 #42D370
tetradic
#7042D3 #D3425D #A5D342 #42D3B8
square
#7042D3 #D3425D #A5D342 #42D3B8
split-complementary
#7042D3 #D3B842 #5DD342
monochromatic
#3C1D7D #5329AF #7042D3 #9674DF #BBA5EA

Accessibility & contrast

On white

6.16
#7042D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7042D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042D3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042D3#FFFFFF#000000##FFFFFF
##7042D31.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#516685
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7042d3;
/* rgb */ color: rgb(112, 66, 211);
/* oklch */ color: oklch(51.7% 0.209 292.0);
Tailwind
colors: {
  custom: {
    50: '#a17ae2',
    500: '#7042d3',
    950: '#000000',
  },
}
SCSS
$custom: #7042d3;
$custom-light: #a17ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7042d3",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 259.034,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51682,
    "c": 0.2094,
    "h": 292
  },
  "luminance": 0.12044
}

Semantic roles & 50–950 ramp

primary
#7042D3
secondary
#C4D79A
accent
#E542B2
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7042D3

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

Preview Lab → · Contrast checker → · Palette generator →

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