#7040CF#7040CF

#7040CF is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.207 H 293.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7040CF
RGBrgb(112, 64, 207)
HSLhsl(260, 60%, 53%)
HSVhsv(260, 69%, 81%)
CMYKcmyk(45.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.60, 52.31, -66.58)
CIE-LCHlch(40.60, 84.68, 308.16°)
OKLaboklab(51.09% 0.0809 -0.1907)
OKLCHoklch(51.09% 0.207 293)
XYZxyz(19.7749, 11.6159, 60.2196)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040CF #9FCF40
analogous
#4057CF #7040CF #B840CF
triadic
#7040CF #CF7040 #40CF70
tetradic
#7040CF #CF4057 #9FCF40 #40CFB8
square
#7040CF #CF4057 #9FCF40 #40CFB8
split-complementary
#7040CF #CFB840 #57CF40
monochromatic
#3C1E77 #542AA8 #7040CF #9571DB #B9A2E8

Accessibility & contrast

On white

6.32
#7040CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7040CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040CF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040CF#FFFFFF#000000##FFFFFF
##7040CF1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#546483
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7040cf;
/* rgb */ color: rgb(112, 64, 207);
/* oklch */ color: oklch(51.1% 0.207 293.0);
Tailwind
colors: {
  custom: {
    50: '#a178df',
    500: '#7040cf',
    950: '#000000',
  },
}
SCSS
$custom: #7040cf;
$custom-light: #a178df;
$custom-dark: #000000;
JSON
{
  "hex": "#7040cf",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 260.14,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51093,
    "c": 0.20716,
    "h": 293
  },
  "luminance": 0.11617
}

Semantic roles & 50–950 ramp

primary
#7040CF
secondary
#C0D497
accent
#E345AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040CF

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

Preview Lab → · Contrast checker → · Palette generator →

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