#7040C9#7040C9

#7040C9 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.200 H 294.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7040C9
RGBrgb(112, 64, 201)
HSLhsl(261, 56%, 52%)
HSVhsv(261, 68%, 79%)
CMYKcmyk(44.3%, 68.2%, 0%, 21.2%)
CIE-LABlab(40.13, 50.71, -63.88)
CIE-LCHlch(40.13, 81.56, 308.44°)
OKLaboklab(50.61% 0.0819 -0.1827)
OKLCHoklch(50.61% 0.2 294.1)
XYZxyz(19.0552, 11.3281, 56.4296)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C9 #99C940
analogous
#4055C9 #7040C9 #B540C9
triadic
#7040C9 #C97040 #40C970
tetradic
#7040C9 #C94055 #99C940 #40C9B5
square
#7040C9 #C94055 #99C940 #40C9B5
split-complementary
#7040C9 #C9B540 #55C940
monochromatic
#3B1F6F #552D9F #7040C9 #9470D6 #B79FE4

Accessibility & contrast

On white

6.43
#7040C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7040C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C9
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C9#FFFFFF#000000##FFFFFF
##7040C91.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#57627F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7040c9;
/* rgb */ color: rgb(112, 64, 201);
/* oklch */ color: oklch(50.6% 0.200 294.1);
Tailwind
colors: {
  custom: {
    50: '#a078da',
    500: '#7040c9',
    950: '#000000',
  },
}
SCSS
$custom: #7040c9;
$custom-light: #a078da;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c9",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 261.022,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50609,
    "c": 0.20026,
    "h": 294.1
  },
  "luminance": 0.11329
}

Semantic roles & 50–950 ramp

primary
#7040C9
secondary
#BBD094
accent
#DF49AA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040C9

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

Preview Lab → · Contrast checker → · Palette generator →

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