#7040A3#7040A3

#7040A3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.8% C 0.155 H 303.4°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7040A3
RGBrgb(112, 64, 163)
HSLhsl(269, 44%, 45%)
HSVhsv(269, 61%, 64%)
CMYKcmyk(31.3%, 60.7%, 0%, 36.1%)
CIE-LABlab(37.40, 40.77, -45.88)
CIE-LCHlch(37.40, 61.38, 311.63°)
OKLaboklab(47.78% 0.0855 -0.1298)
OKLCHoklch(47.78% 0.155 303.4)
XYZxyz(15.1248, 9.7559, 35.7295)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040A3 #73A340
analogous
#4042A3 #7040A3 #A240A3
triadic
#7040A3 #A37040 #40A370
tetradic
#7040A3 #A34042 #73A340 #40A3A2
square
#7040A3 #A34042 #73A340 #40A3A2
split-complementary
#7040A3 #A3A240 #42A340
monochromatic
#341D4B #522F77 #7040A3 #8F60C0 #AE8CD2

Accessibility & contrast

On white

7.12
#7040A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7040A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7040A3
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040A3#FFFFFF#000000##FFFFFF
##7040A31.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C57A6
Deuteranopia (green-blind)
#2758A1
Tritanopia (blue-blind)
#66546B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7040a3;
/* rgb */ color: rgb(112, 64, 163);
/* oklch */ color: oklch(47.8% 0.155 303.4);
Tailwind
colors: {
  custom: {
    50: '#9d77bf',
    500: '#7040a3',
    950: '#000000',
  },
}
SCSS
$custom: #7040a3;
$custom-light: #9d77bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7040a3",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 269.091,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47779,
    "c": 0.15545,
    "h": 303.4
  },
  "luminance": 0.09756
}

Semantic roles & 50–950 ramp

primary
#7040A3
secondary
#A0BD82
accent
#D35496
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0F0912
muted
#7E7B81

Preview Lab

Preview with #7040A3

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

Preview Lab → · Contrast checker → · Palette generator →

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