#7040A2#7040A2

#7040A2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.154 H 303.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7040A2
RGBrgb(112, 64, 162)
HSLhsl(269, 43%, 44%)
HSVhsv(269, 60%, 64%)
CMYKcmyk(30.9%, 60.5%, 0%, 36.5%)
CIE-LABlab(37.34, 40.52, -45.38)
CIE-LCHlch(37.34, 60.84, 311.76°)
OKLaboklab(47.71% 0.0855 -0.1284)
OKLCHoklch(47.71% 0.154 303.7)
XYZxyz(15.0356, 9.7202, 35.2595)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040A2 #72A240
analogous
#4041A2 #7040A2 #A140A2
triadic
#7040A2 #A27040 #40A270
tetradic
#7040A2 #A24041 #72A240 #40A2A1
square
#7040A2 #A24041 #72A240 #40A2A1
split-complementary
#7040A2 #A2A140 #41A240
monochromatic
#331D4A #522F76 #7040A2 #8F5FC0 #AD8BD1

Accessibility & contrast

On white

7.13
#7040A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7040A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7040A2
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040A2#FFFFFF#000000##FFFFFF
##7040A21.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F57A5
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#67546B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7040a2;
/* rgb */ color: rgb(112, 64, 162);
/* oklch */ color: oklch(47.7% 0.154 303.7);
Tailwind
colors: {
  custom: {
    50: '#9c77be',
    500: '#7040a2',
    950: '#000000',
  },
}
SCSS
$custom: #7040a2;
$custom-light: #9c77be;
$custom-dark: #000000;
JSON
{
  "hex": "#7040a2",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 269.388,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4771,
    "c": 0.15425,
    "h": 303.7
  },
  "luminance": 0.0972
}

Semantic roles & 50–950 ramp

primary
#7040A2
secondary
#9FBC82
accent
#D35595
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0F0912
muted
#7E7B81

Preview Lab

Preview with #7040A2

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

Preview Lab → · Contrast checker → · Palette generator →

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