#7040C7#7040C7

#7040C7 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.198 H 294.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7040C7
RGBrgb(112, 64, 199)
HSLhsl(261, 55%, 52%)
HSVhsv(261, 68%, 78%)
CMYKcmyk(43.7%, 67.8%, 0%, 22%)
CIE-LABlab(39.97, 50.17, -62.97)
CIE-LCHlch(39.97, 80.51, 308.55°)
OKLaboklab(50.45% 0.0822 -0.1801)
OKLCHoklch(50.45% 0.198 294.5)
XYZxyz(18.8215, 11.2346, 55.1986)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C7 #97C740
analogous
#4054C7 #7040C7 #B340C7
triadic
#7040C7 #C77040 #40C770
tetradic
#7040C7 #C74054 #97C740 #40C7B3
square
#7040C7 #C74054 #97C740 #40C7B3
split-complementary
#7040C7 #C7B340 #54C740
monochromatic
#3B206D #552E9C #7040C7 #936FD5 #B79FE3

Accessibility & contrast

On white

6.47
#7040C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7040C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C7
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C7#FFFFFF#000000##FFFFFF
##7040C71.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#58617E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7040c7;
/* rgb */ color: rgb(112, 64, 199);
/* oklch */ color: oklch(50.4% 0.198 294.5);
Tailwind
colors: {
  custom: {
    50: '#a078d9',
    500: '#7040c7',
    950: '#000000',
  },
}
SCSS
$custom: #7040c7;
$custom-light: #a078d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c7",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 261.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5045,
    "c": 0.19795,
    "h": 294.5
  },
  "luminance": 0.11235
}

Semantic roles & 50–950 ramp

primary
#7040C7
secondary
#BACF94
accent
#DE4AA9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7040C7

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

Preview Lab → · Contrast checker → · Palette generator →

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