#7040BE#7040BE

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

Color values

HEX#7040BE
RGBrgb(112, 64, 190)
HSLhsl(263, 50%, 50%)
HSVhsv(263, 66%, 75%)
CMYKcmyk(41.1%, 66.3%, 0%, 25.5%)
CIE-LABlab(39.29, 47.78, -58.82)
CIE-LCHlch(39.29, 75.78, 309.09°)
OKLaboklab(49.75% 0.0835 -0.1679)
OKLCHoklch(49.75% 0.187 296.4)
XYZxyz(17.8073, 10.8289, 49.8572)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040BE #8EBE40
analogous
#404FBE #7040BE #AF40BE
triadic
#7040BE #BE7040 #40BE70
tetradic
#7040BE #BE404F #8EBE40 #40BEAF
square
#7040BE #BE404F #8EBE40 #40BEAF
split-complementary
#7040BE #BEAF40 #4FBE40
monochromatic
#3A2162 #553190 #7040BE #926DCE #B49BDD

Accessibility & contrast

On white

6.63
#7040BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7040BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040BE
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040BE#FFFFFF#000000##FFFFFF
##7040BE1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#5C5E79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7040be;
/* rgb */ color: rgb(112, 64, 190);
/* oklch */ color: oklch(49.7% 0.187 296.4);
Tailwind
colors: {
  custom: {
    50: '#9f78d2',
    500: '#7040be',
    950: '#000000',
  },
}
SCSS
$custom: #7040be;
$custom-light: #9f78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7040be",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 262.857,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49747,
    "c": 0.18749,
    "h": 296.4
  },
  "luminance": 0.10829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7040BE

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

Preview Lab → · Contrast checker → · Palette generator →

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