#7040BB#7040BB

#7040BB is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.184 H 297.1°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7040BB
RGBrgb(112, 64, 187)
HSLhsl(263, 49%, 49%)
HSVhsv(263, 66%, 73%)
CMYKcmyk(40.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(39.07, 46.99, -57.42)
CIE-LCHlch(39.07, 74.20, 309.29°)
OKLaboklab(49.52% 0.0838 -0.1638)
OKLCHoklch(49.52% 0.184 297.1)
XYZxyz(17.4828, 10.6991, 48.1481)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040BB #8BBB40
analogous
#404DBB #7040BB #AE40BB
triadic
#7040BB #BB7040 #40BB70
tetradic
#7040BB #BB404D #8BBB40 #40BBAE
square
#7040BB #BB404D #8BBB40 #40BBAE
split-complementary
#7040BB #BBAE40 #4DBB40
monochromatic
#392160 #55308D #7040BB #916CCD #B399DC

Accessibility & contrast

On white

6.69
#7040BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7040BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040BB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040BB#FFFFFF#000000##FFFFFF
##7040BB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#5D5D78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7040bb;
/* rgb */ color: rgb(112, 64, 187);
/* oklch */ color: oklch(49.5% 0.184 297.1);
Tailwind
colors: {
  custom: {
    50: '#9f78d0',
    500: '#7040bb',
    950: '#000000',
  },
}
SCSS
$custom: #7040bb;
$custom-light: #9f78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7040bb",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 263.415,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49517,
    "c": 0.18398,
    "h": 297.1
  },
  "luminance": 0.10699
}

Semantic roles & 50–950 ramp

primary
#7040BB
secondary
#B2C88F
accent
#D94FA3
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7040BB

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

Preview Lab → · Contrast checker → · Palette generator →

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