#7040BF#7040BF

#7040BF is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.189 H 296.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7040BF
RGBrgb(112, 64, 191)
HSLhsl(263, 50%, 50%)
HSVhsv(263, 66%, 75%)
CMYKcmyk(41.4%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.37, 48.05, -59.29)
CIE-LCHlch(39.37, 76.31, 309.02°)
OKLaboklab(49.82% 0.0833 -0.1693)
OKLCHoklch(49.82% 0.189 296.2)
XYZxyz(17.9170, 10.8728, 50.4348)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040BF #8FBF40
analogous
#4050BF #7040BF #AF40BF
triadic
#7040BF #BF7040 #40BF70
tetradic
#7040BF #BF4050 #8FBF40 #40BFAF
square
#7040BF #BF4050 #8FBF40 #40BFAF
split-complementary
#7040BF #BFAF40 #50BF40
monochromatic
#3A2163 #553191 #7040BF #926ECE #B59CDE

Accessibility & contrast

On white

6.62
#7040BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7040BF
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040BF#FFFFFF#000000##FFFFFF
##7040BF1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#5C5E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7040bf;
/* rgb */ color: rgb(112, 64, 191);
/* oklch */ color: oklch(49.8% 0.189 296.2);
Tailwind
colors: {
  custom: {
    50: '#9f78d3',
    500: '#7040bf',
    950: '#000000',
  },
}
SCSS
$custom: #7040bf;
$custom-light: #9f78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7040bf",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 262.677,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49824,
    "c": 0.18866,
    "h": 296.2
  },
  "luminance": 0.10873
}

Semantic roles & 50–950 ramp

primary
#7040BF
secondary
#B4CA91
accent
#D94EA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7040BF

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

Preview Lab → · Contrast checker → · Palette generator →

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