#7040C1#7040C1

#7040C1 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.191 H 295.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7040C1
RGBrgb(112, 64, 193)
HSLhsl(262, 51%, 50%)
HSVhsv(262, 67%, 76%)
CMYKcmyk(42%, 66.8%, 0%, 24.3%)
CIE-LABlab(39.52, 48.58, -60.21)
CIE-LCHlch(39.52, 77.37, 308.89°)
OKLaboklab(49.98% 0.0831 -0.172)
OKLCHoklch(49.98% 0.191 295.8)
XYZxyz(18.1386, 10.9614, 51.6018)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C1 #91C140
analogous
#4050C1 #7040C1 #B140C1
triadic
#7040C1 #C17040 #40C170
tetradic
#7040C1 #C14050 #91C140 #40C1B1
square
#7040C1 #C14050 #91C140 #40C1B1
split-complementary
#7040C1 #C1B140 #50C140
monochromatic
#3B2166 #553094 #7040C1 #936ED0 #B59CDF

Accessibility & contrast

On white

6.58
#7040C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7040C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C1
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C1#FFFFFF#000000##FFFFFF
##7040C11.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#5B5F7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7040c1;
/* rgb */ color: rgb(112, 64, 193);
/* oklch */ color: oklch(50.0% 0.191 295.8);
Tailwind
colors: {
  custom: {
    50: '#9f78d5',
    500: '#7040c1',
    950: '#000000',
  },
}
SCSS
$custom: #7040c1;
$custom-light: #9f78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c1",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 262.326,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49979,
    "c": 0.19099,
    "h": 295.8
  },
  "luminance": 0.10962
}

Semantic roles & 50–950 ramp

primary
#7040C1
secondary
#B6CB92
accent
#DA4DA6
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7040C1

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

Preview Lab → · Contrast checker → · Palette generator →

#7040C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva