#7040CD#7040CD

#7040CD is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.205 H 293.4°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7040CD
RGBrgb(112, 64, 205)
HSLhsl(260, 59%, 53%)
HSVhsv(260, 69%, 80%)
CMYKcmyk(45.4%, 68.8%, 0%, 19.6%)
CIE-LABlab(40.44, 51.78, -65.69)
CIE-LCHlch(40.44, 83.64, 308.25°)
OKLaboklab(50.93% 0.0813 -0.1881)
OKLCHoklch(50.93% 0.205 293.4)
XYZxyz(19.5319, 11.5187, 58.9400)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040CD #9DCD40
analogous
#4056CD #7040CD #B740CD
triadic
#7040CD #CD7040 #40CD70
tetradic
#7040CD #CD4056 #9DCD40 #40CDB7
square
#7040CD #CD4056 #9DCD40 #40CDB7
split-complementary
#7040CD #CDB740 #56CD40
monochromatic
#3C1E74 #552BA5 #7040CD #9471DA #B9A1E6

Accessibility & contrast

On white

6.36
#7040CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7040CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040CD
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040CD#FFFFFF#000000##FFFFFF
##7040CD1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#556382
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7040cd;
/* rgb */ color: rgb(112, 64, 205);
/* oklch */ color: oklch(50.9% 0.205 293.4);
Tailwind
colors: {
  custom: {
    50: '#a178dd',
    500: '#7040cd',
    950: '#000000',
  },
}
SCSS
$custom: #7040cd;
$custom-light: #a178dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7040cd",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 260.426,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50931,
    "c": 0.20487,
    "h": 293.4
  },
  "luminance": 0.11519
}

Semantic roles & 50–950 ramp

primary
#7040CD
secondary
#BED396
accent
#E246AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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