#7040CA#7040CA

#7040CA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.201 H 293.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7040CA
RGBrgb(112, 64, 202)
HSLhsl(261, 57%, 52%)
HSVhsv(261, 68%, 79%)
CMYKcmyk(44.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(40.21, 50.97, -64.33)
CIE-LCHlch(40.21, 82.08, 308.39°)
OKLaboklab(50.69% 0.0818 -0.1841)
OKLCHoklch(50.69% 0.201 293.9)
XYZxyz(19.1733, 11.3753, 57.0511)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040CA #9ACA40
analogous
#4055CA #7040CA #B540CA
triadic
#7040CA #CA7040 #40CA70
tetradic
#7040CA #CA4055 #9ACA40 #40CAB5
square
#7040CA #CA4055 #9ACA40 #40CAB5
split-complementary
#7040CA #CAB540 #55CA40
monochromatic
#3B1F70 #552CA0 #7040CA #9470D7 #B8A0E5

Accessibility & contrast

On white

6.41
#7040CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7040CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7040CA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040CA#FFFFFF#000000##FFFFFF
##7040CA1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#566280
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7040ca;
/* rgb */ color: rgb(112, 64, 202);
/* oklch */ color: oklch(50.7% 0.201 293.9);
Tailwind
colors: {
  custom: {
    50: '#a078db',
    500: '#7040ca',
    950: '#000000',
  },
}
SCSS
$custom: #7040ca;
$custom-light: #a078db;
$custom-dark: #000000;
JSON
{
  "hex": "#7040ca",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 260.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50689,
    "c": 0.20142,
    "h": 293.9
  },
  "luminance": 0.11376
}

Semantic roles & 50–950 ramp

primary
#7040CA
secondary
#BCD195
accent
#E048AB
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040CA

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

Preview Lab → · Contrast checker → · Palette generator →

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