#7040B8#7040B8

#7040B8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.180 H 297.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7040B8
RGBrgb(112, 64, 184)
HSLhsl(264, 48%, 49%)
HSVhsv(264, 65%, 72%)
CMYKcmyk(39.1%, 65.2%, 0%, 27.8%)
CIE-LABlab(38.85, 46.20, -56.02)
CIE-LCHlch(38.85, 72.61, 309.51°)
OKLaboklab(49.29% 0.0841 -0.1596)
OKLCHoklch(49.29% 0.18 297.8)
XYZxyz(17.1650, 10.5720, 46.4744)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040B8 #88B840
analogous
#404CB8 #7040B8 #AC40B8
triadic
#7040B8 #B87040 #40B870
tetradic
#7040B8 #B8404C #88B840 #40B8AC
square
#7040B8 #B8404C #88B840 #40B8AC
split-complementary
#7040B8 #B8AC40 #4CB840
monochromatic
#39205D #54308B #7040B8 #916ACB #B297DB

Accessibility & contrast

On white

6.74
#7040B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7040B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040B8
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040B8#FFFFFF#000000##FFFFFF
##7040B81.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#5F5B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7040b8;
/* rgb */ color: rgb(112, 64, 184);
/* oklch */ color: oklch(49.3% 0.180 297.8);
Tailwind
colors: {
  custom: {
    50: '#9e78ce',
    500: '#7040b8',
    950: '#000000',
  },
}
SCSS
$custom: #7040b8;
$custom-light: #9e78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7040b8",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 264,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4929,
    "c": 0.18044,
    "h": 297.8
  },
  "luminance": 0.10572
}

Semantic roles & 50–950 ramp

primary
#7040B8
secondary
#B0C78D
accent
#D850A2
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7040B8

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

Preview Lab → · Contrast checker → · Palette generator →

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