#7040BD#7040BD

#7040BD is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.186 H 296.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7040BD
RGBrgb(112, 64, 189)
HSLhsl(263, 49%, 50%)
HSVhsv(263, 66%, 74%)
CMYKcmyk(40.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(39.22, 47.52, -58.36)
CIE-LCHlch(39.22, 75.26, 309.15°)
OKLaboklab(49.67% 0.0836 -0.1665)
OKLCHoklch(49.67% 0.186 296.7)
XYZxyz(17.6984, 10.7853, 49.2836)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040BD #8DBD40
analogous
#404FBD #7040BD #AF40BD
triadic
#7040BD #BD7040 #40BD70
tetradic
#7040BD #BD404F #8DBD40 #40BDAF
square
#7040BD #BD404F #8DBD40 #40BDAF
split-complementary
#7040BD #BDAF40 #4FBD40
monochromatic
#3A2162 #55318F #7040BD #926DCD #B49ADD

Accessibility & contrast

On white

6.65
#7040BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7040BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040BD
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040BD#FFFFFF#000000##FFFFFF
##7040BD1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#5D5D79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7040bd;
/* rgb */ color: rgb(112, 64, 189);
/* oklch */ color: oklch(49.7% 0.186 296.7);
Tailwind
colors: {
  custom: {
    50: '#9f78d2',
    500: '#7040bd',
    950: '#000000',
  },
}
SCSS
$custom: #7040bd;
$custom-light: #9f78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7040bd",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 263.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4967,
    "c": 0.18631,
    "h": 296.7
  },
  "luminance": 0.10786
}

Semantic roles & 50–950 ramp

primary
#7040BD
secondary
#B3C990
accent
#D94FA4
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7040BD

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

Preview Lab → · Contrast checker → · Palette generator →

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