#7040BA#7040BA

#7040BA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.4% C 0.183 H 297.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7040BA
RGBrgb(112, 64, 186)
HSLhsl(264, 49%, 49%)
HSVhsv(264, 66%, 73%)
CMYKcmyk(39.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(39.00, 46.73, -56.96)
CIE-LCHlch(39.00, 73.67, 309.36°)
OKLaboklab(49.44% 0.0839 -0.1624)
OKLCHoklch(49.44% 0.183 297.3)
XYZxyz(17.3761, 10.6564, 47.5863)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040BA #8ABA40
analogous
#404DBA #7040BA #AD40BA
triadic
#7040BA #BA7040 #40BA70
tetradic
#7040BA #BA404D #8ABA40 #40BAAD
square
#7040BA #BA404D #8ABA40 #40BAAD
split-complementary
#7040BA #BAAD40 #4DBA40
monochromatic
#39215F #55308C #7040BA #916BCC #B399DC

Accessibility & contrast

On white

6.71
#7040BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7040BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040BA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040BA#FFFFFF#000000##FFFFFF
##7040BA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#5E5C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7040ba;
/* rgb */ color: rgb(112, 64, 186);
/* oklch */ color: oklch(49.4% 0.183 297.3);
Tailwind
colors: {
  custom: {
    50: '#9f78d0',
    500: '#7040ba',
    950: '#000000',
  },
}
SCSS
$custom: #7040ba;
$custom-light: #9f78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7040ba",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 263.607,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49441,
    "c": 0.1828,
    "h": 297.3
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#7040BA
secondary
#B1C88E
accent
#D84FA2
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7040BA

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

Preview Lab → · Contrast checker → · Palette generator →

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