#7040E6#7040E6

#7040E6 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.233 H 289.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7040E6
RGBrgb(112, 64, 230)
HSLhsl(257, 77%, 58%)
HSVhsv(257, 72%, 90%)
CMYKcmyk(51.3%, 72.2%, 0%, 9.8%)
CIE-LABlab(42.50, 58.51, -76.65)
CIE-LCHlch(42.50, 96.43, 307.35°)
OKLaboklab(53.03% 0.0764 -0.2202)
OKLCHoklch(53.03% 0.233 289.1)
XYZxyz(22.7943, 12.8237, 76.1217)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040E6 #B6E640
analogous
#4063E6 #7040E6 #C340E6
triadic
#7040E6 #E67040 #40E670
tetradic
#7040E6 #E64063 #B6E640 #40E6C3
square
#7040E6 #E64063 #B6E640 #40E6C3
split-complementary
#7040E6 #E6C340 #63E640
monochromatic
#3A1498 #4F1BCE #7040E6 #9976ED #C1ACF4

Accessibility & contrast

On white

5.89
#7040E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7040E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040E6
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040E6#FFFFFF#000000##FFFFFF
##7040E61.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#0060E3
Tritanopia (blue-blind)
#446D8F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7040e6;
/* rgb */ color: rgb(112, 64, 230);
/* oklch */ color: oklch(53.0% 0.233 289.1);
Tailwind
colors: {
  custom: {
    50: '#a479ef',
    500: '#7040e6',
    950: '#000000',
  },
}
SCSS
$custom: #7040e6;
$custom-light: #a479ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7040e6",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 257.349,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53026,
    "c": 0.2331,
    "h": 289.1
  },
  "luminance": 0.12825
}

Semantic roles & 50–950 ramp

primary
#7040E6
secondary
#CFE29F
accent
#F334BC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #7040E6

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

Preview Lab → · Contrast checker → · Palette generator →

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