#7040CC#7040CC

#7040CC is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.8% C 0.204 H 293.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7040CC
RGBrgb(112, 64, 204)
HSLhsl(261, 58%, 53%)
HSVhsv(261, 69%, 80%)
CMYKcmyk(45.1%, 68.6%, 0%, 20%)
CIE-LABlab(40.36, 51.51, -65.23)
CIE-LCHlch(40.36, 83.12, 308.29°)
OKLaboklab(50.85% 0.0814 -0.1867)
OKLCHoklch(50.85% 0.204 293.6)
XYZxyz(19.4116, 11.4706, 58.3063)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040CC #9CCC40
analogous
#4056CC #7040CC #B640CC
triadic
#7040CC #CC7040 #40CC70
tetradic
#7040CC #CC4056 #9CCC40 #40CCB6
square
#7040CC #CC4056 #9CCC40 #40CCB6
split-complementary
#7040CC #CCB640 #56CC40
monochromatic
#3C1F73 #552CA3 #7040CC #9470D9 #B8A1E6

Accessibility & contrast

On white

6.37
#7040CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7040CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040CC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040CC#FFFFFF#000000##FFFFFF
##7040CC1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#556381
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7040cc;
/* rgb */ color: rgb(112, 64, 204);
/* oklch */ color: oklch(50.8% 0.204 293.6);
Tailwind
colors: {
  custom: {
    50: '#a178dd',
    500: '#7040cc',
    950: '#000000',
  },
}
SCSS
$custom: #7040cc;
$custom-light: #a178dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7040cc",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 260.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5085,
    "c": 0.20372,
    "h": 293.6
  },
  "luminance": 0.11471
}

Semantic roles & 50–950 ramp

primary
#7040CC
secondary
#BDD295
accent
#E147AC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040CC

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

Preview Lab → · Contrast checker → · Palette generator →

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