#7040C0#7040C0

#7040C0 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.190 H 296.0°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7040C0
RGBrgb(112, 64, 192)
HSLhsl(263, 50%, 50%)
HSVhsv(263, 67%, 75%)
CMYKcmyk(41.7%, 66.7%, 0%, 24.7%)
CIE-LABlab(39.44, 48.31, -59.75)
CIE-LCHlch(39.44, 76.84, 308.96°)
OKLaboklab(49.9% 0.0832 -0.1706)
OKLCHoklch(49.9% 0.19 296)
XYZxyz(18.0274, 10.9169, 51.0163)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C0 #90C040
analogous
#4050C0 #7040C0 #B040C0
triadic
#7040C0 #C07040 #40C070
tetradic
#7040C0 #C04050 #90C040 #40C0B0
square
#7040C0 #C04050 #90C040 #40C0B0
split-complementary
#7040C0 #C0B040 #50C040
monochromatic
#3A2164 #553092 #7040C0 #926ECF #B59CDE

Accessibility & contrast

On white

6.60
#7040C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7040C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C0
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C0#FFFFFF#000000##FFFFFF
##7040C01.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#5B5E7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7040c0;
/* rgb */ color: rgb(112, 64, 192);
/* oklch */ color: oklch(49.9% 0.190 296.0);
Tailwind
colors: {
  custom: {
    50: '#9f78d4',
    500: '#7040c0',
    950: '#000000',
  },
}
SCSS
$custom: #7040c0;
$custom-light: #9f78d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c0",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 262.5,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49901,
    "c": 0.18982,
    "h": 296
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#7040C0
secondary
#B5CB91
accent
#DA4EA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7040C0

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

Preview Lab → · Contrast checker → · Palette generator →

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