#7040CE#7040CE

#7040CE is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.206 H 293.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7040CE
RGBrgb(112, 64, 206)
HSLhsl(260, 59%, 53%)
HSVhsv(260, 69%, 81%)
CMYKcmyk(45.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.52, 52.05, -66.13)
CIE-LCHlch(40.52, 84.16, 308.20°)
OKLaboklab(51.01% 0.0811 -0.1894)
OKLCHoklch(51.01% 0.206 293.2)
XYZxyz(19.6530, 11.5672, 59.5777)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040CE #9ECE40
analogous
#4057CE #7040CE #B740CE
triadic
#7040CE #CE7040 #40CE70
tetradic
#7040CE #CE4057 #9ECE40 #40CEB7
square
#7040CE #CE4057 #9ECE40 #40CEB7
split-complementary
#7040CE #CEB740 #57CE40
monochromatic
#3C1E75 #542BA6 #7040CE #9471DA #B9A1E7

Accessibility & contrast

On white

6.34
#7040CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7040CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040CE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040CE#FFFFFF#000000##FFFFFF
##7040CE1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#546482
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7040ce;
/* rgb */ color: rgb(112, 64, 206);
/* oklch */ color: oklch(51.0% 0.206 293.2);
Tailwind
colors: {
  custom: {
    50: '#a178de',
    500: '#7040ce',
    950: '#000000',
  },
}
SCSS
$custom: #7040ce;
$custom-light: #a178de;
$custom-dark: #000000;
JSON
{
  "hex": "#7040ce",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 260.282,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51012,
    "c": 0.20601,
    "h": 293.2
  },
  "luminance": 0.11568
}

Semantic roles & 50–950 ramp

primary
#7040CE
secondary
#BFD496
accent
#E245AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040CE

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

Preview Lab → · Contrast checker → · Palette generator →

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