#7042D2#7042D2

#7042D2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.208 H 292.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7042D2
RGBrgb(112, 66, 210)
HSLhsl(259, 62%, 54%)
HSVhsv(259, 69%, 82%)
CMYKcmyk(46.7%, 68.6%, 0%, 17.6%)
CIE-LABlab(41.21, 52.10, -67.32)
CIE-LCHlch(41.21, 85.13, 307.74°)
OKLaboklab(51.6% 0.0785 -0.1929)
OKLCHoklch(51.6% 0.208 292.1)
XYZxyz(20.2599, 11.9936, 62.2078)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042D2 #A4D242
analogous
#425CD2 #7042D2 #B842D2
triadic
#7042D2 #D27042 #42D270
tetradic
#7042D2 #D2425C #A4D242 #42D2B8
square
#7042D2 #D2425C #A4D242 #42D2B8
split-complementary
#7042D2 #D2B842 #5CD242
monochromatic
#3C1E7C #5429AD #7042D2 #9573DE #BBA5EA

Accessibility & contrast

On white

6.18
#7042D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7042D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042D2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042D2#FFFFFF#000000##FFFFFF
##7042D21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#526685
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7042d2;
/* rgb */ color: rgb(112, 66, 210);
/* oklch */ color: oklch(51.6% 0.208 292.1);
Tailwind
colors: {
  custom: {
    50: '#a17ae1',
    500: '#7042d2',
    950: '#000000',
  },
}
SCSS
$custom: #7042d2;
$custom-light: #a17ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7042d2",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 259.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.516,
    "c": 0.20825,
    "h": 292.1
  },
  "luminance": 0.11994
}

Semantic roles & 50–950 ramp

primary
#7042D2
secondary
#C3D799
accent
#E543B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7042D2

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

Preview Lab → · Contrast checker → · Palette generator →

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