#7040C5#7040C5

#7040C5 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.196 H 294.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7040C5
RGBrgb(112, 64, 197)
HSLhsl(262, 53%, 51%)
HSVhsv(262, 68%, 77%)
CMYKcmyk(43.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(39.82, 49.64, -62.05)
CIE-LCHlch(39.82, 79.47, 308.66°)
OKLaboklab(50.29% 0.0825 -0.1774)
OKLCHoklch(50.29% 0.196 294.9)
XYZxyz(18.5908, 11.1423, 53.9837)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C5 #95C540
analogous
#4052C5 #7040C5 #B240C5
triadic
#7040C5 #C57040 #40C570
tetradic
#7040C5 #C54052 #95C540 #40C5B2
square
#7040C5 #C54052 #95C540 #40C5B2
split-complementary
#7040C5 #C5B240 #52C540
monochromatic
#3B206A #552F99 #7040C5 #936FD3 #B69EE2

Accessibility & contrast

On white

6.50
#7040C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7040C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C5
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C5#FFFFFF#000000##FFFFFF
##7040C51.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7040c5;
/* rgb */ color: rgb(112, 64, 197);
/* oklch */ color: oklch(50.3% 0.196 294.9);
Tailwind
colors: {
  custom: {
    50: '#a078d7',
    500: '#7040c5',
    950: '#000000',
  },
}
SCSS
$custom: #7040c5;
$custom-light: #a078d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c5",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 261.654,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50292,
    "c": 0.19564,
    "h": 294.9
  },
  "luminance": 0.11143
}

Semantic roles & 50–950 ramp

primary
#7040C5
secondary
#B9CE93
accent
#DD4BA8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7040C5

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

Preview Lab → · Contrast checker → · Palette generator →

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