#7042DB#7042DB

#7042DB is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.219 H 290.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7042DB
RGBrgb(112, 66, 219)
HSLhsl(258, 68%, 56%)
HSVhsv(258, 70%, 86%)
CMYKcmyk(48.9%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.93, 54.54, -71.31)
CIE-LCHlch(41.93, 89.78, 307.41°)
OKLaboklab(52.34% 0.0769 -0.2046)
OKLCHoklch(52.34% 0.219 290.6)
XYZxyz(21.4128, 12.4548, 68.2799)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042DB #ADDB42
analogous
#4260DB #7042DB #BC42DB
triadic
#7042DB #DB7042 #42DB70
tetradic
#7042DB #DB4260 #ADDB42 #42DBBC
square
#7042DB #DB4260 #ADDB42 #42DBBC
split-complementary
#7042DB #DBBC42 #60DB42
monochromatic
#3B1A89 #5224BC #7042DB #9775E5 #BEA9EF

Accessibility & contrast

On white

6.02
#7042DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7042DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042DB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042DB#FFFFFF#000000##FFFFFF
##7042DB1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#4C698A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7042db;
/* rgb */ color: rgb(112, 66, 219);
/* oklch */ color: oklch(52.3% 0.219 290.6);
Tailwind
colors: {
  custom: {
    50: '#a27ae7',
    500: '#7042db',
    950: '#000000',
  },
}
SCSS
$custom: #7042db;
$custom-light: #a27ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7042db",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 258.039,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52341,
    "c": 0.21856,
    "h": 290.6
  },
  "luminance": 0.12456
}

Semantic roles & 50–950 ramp

primary
#7042DB
secondary
#C9DC9D
accent
#EB3DB7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7042DB

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

Preview Lab → · Contrast checker → · Palette generator →

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