#7040C8#7040C8

#7040C8 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.199 H 294.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7040C8
RGBrgb(112, 64, 200)
HSLhsl(261, 55%, 52%)
HSVhsv(261, 68%, 78%)
CMYKcmyk(44%, 68%, 0%, 21.6%)
CIE-LABlab(40.05, 50.44, -63.42)
CIE-LCHlch(40.05, 81.03, 308.50°)
OKLaboklab(50.53% 0.0821 -0.1814)
OKLCHoklch(50.53% 0.199 294.3)
XYZxyz(18.9380, 11.2812, 55.8121)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C8 #98C840
analogous
#4054C8 #7040C8 #B440C8
triadic
#7040C8 #C87040 #40C870
tetradic
#7040C8 #C84054 #98C840 #40C8B4
square
#7040C8 #C84054 #98C840 #40C8B4
split-complementary
#7040C8 #C8B440 #54C840
monochromatic
#3B206E #552D9D #7040C8 #9470D6 #B79FE3

Accessibility & contrast

On white

6.45
#7040C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7040C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C8
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C8#FFFFFF#000000##FFFFFF
##7040C81.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#57617F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7040c8;
/* rgb */ color: rgb(112, 64, 200);
/* oklch */ color: oklch(50.5% 0.199 294.3);
Tailwind
colors: {
  custom: {
    50: '#a078da',
    500: '#7040c8',
    950: '#000000',
  },
}
SCSS
$custom: #7040c8;
$custom-light: #a078da;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c8",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 261.176,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50529,
    "c": 0.19911,
    "h": 294.3
  },
  "luminance": 0.11282
}

Semantic roles & 50–950 ramp

primary
#7040C8
secondary
#BBD094
accent
#DF49AA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #7040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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