#7040C2#7040C2

#7040C2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.192 H 295.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7040C2
RGBrgb(112, 64, 194)
HSLhsl(262, 52%, 51%)
HSVhsv(262, 67%, 76%)
CMYKcmyk(42.3%, 67%, 0%, 23.9%)
CIE-LABlab(39.59, 48.84, -60.68)
CIE-LCHlch(39.59, 77.89, 308.83°)
OKLaboklab(50.06% 0.0829 -0.1733)
OKLCHoklch(50.06% 0.192 295.6)
XYZxyz(18.2505, 11.0062, 52.1913)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040C2 #92C240
analogous
#4051C2 #7040C2 #B140C2
triadic
#7040C2 #C27040 #40C270
tetradic
#7040C2 #C24051 #92C240 #40C2B1
square
#7040C2 #C24051 #92C240 #40C2B1
split-complementary
#7040C2 #C2B140 #51C240
monochromatic
#3B2167 #553095 #7040C2 #936ED1 #B59DE0

Accessibility & contrast

On white

6.56
#7040C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7040C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040C2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040C2#FFFFFF#000000##FFFFFF
##7040C21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#5A5F7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7040c2;
/* rgb */ color: rgb(112, 64, 194);
/* oklch */ color: oklch(50.1% 0.192 295.6);
Tailwind
colors: {
  custom: {
    50: '#9f78d5',
    500: '#7040c2',
    950: '#000000',
  },
}
SCSS
$custom: #7040c2;
$custom-light: #9f78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7040c2",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 262.154,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50057,
    "c": 0.19216,
    "h": 295.6
  },
  "luminance": 0.11007
}

Semantic roles & 50–950 ramp

primary
#7040C2
secondary
#B6CC92
accent
#DB4DA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7040C2

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

Preview Lab → · Contrast checker → · Palette generator →

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