#7040C4#7040C4

#7040C4 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.194 H 295.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7040C4
RGBrgb(112, 64, 196)
HSLhsl(262, 53%, 51%)
HSVhsv(262, 67%, 77%)
CMYKcmyk(42.9%, 67.3%, 0%, 23.1%)
CIE-LABlab(39.74, 49.37, -61.60)
CIE-LCHlch(39.74, 78.94, 308.71°)
OKLaboklab(50.21% 0.0827 -0.176)
OKLCHoklch(50.21% 0.194 295.1)
XYZxyz(18.4766, 11.0966, 53.3822)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C4 #94C440
analogous
#4052C4 #7040C4 #B240C4
triadic
#7040C4 #C47040 #40C470
tetradic
#7040C4 #C44052 #94C440 #40C4B2
square
#7040C4 #C44052 #94C440 #40C4B2
split-complementary
#7040C4 #C4B240 #52C440
monochromatic
#3B2069 #552F98 #7040C4 #936FD2 #B69EE1

Accessibility & contrast

On white

6.52
#7040C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7040C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C4#FFFFFF#000000##FFFFFF
##7040C41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#59607D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7040c4;
/* rgb */ color: rgb(112, 64, 196);
/* oklch */ color: oklch(50.2% 0.194 295.1);
Tailwind
colors: {
  custom: {
    50: '#a078d7',
    500: '#7040c4',
    950: '#000000',
  },
}
SCSS
$custom: #7040c4;
$custom-light: #a078d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c4",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 261.818,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50213,
    "c": 0.19448,
    "h": 295.1
  },
  "luminance": 0.11097
}

Semantic roles & 50–950 ramp

primary
#7040C4
secondary
#B8CD93
accent
#DC4CA8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7040C4

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

Preview Lab → · Contrast checker → · Palette generator →

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