#7040CB#7040CB

#7040CB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.203 H 293.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7040CB
RGBrgb(112, 64, 203)
HSLhsl(261, 57%, 52%)
HSVhsv(261, 68%, 80%)
CMYKcmyk(44.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.28, 51.24, -64.78)
CIE-LCHlch(40.28, 82.60, 308.34°)
OKLaboklab(50.77% 0.0816 -0.1854)
OKLCHoklch(50.77% 0.203 293.8)
XYZxyz(19.2920, 11.4228, 57.6767)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7040CB #9BCB40
analogous
#4056CB #7040CB #B540CB
triadic
#7040CB #CB7040 #40CB70
tetradic
#7040CB #CB4056 #9BCB40 #40CBB5
square
#7040CB #CB4056 #9BCB40 #40CBB5
split-complementary
#7040CB #CBB540 #56CB40
monochromatic
#3C1F72 #552CA2 #7040CB #9470D8 #B8A0E5

Accessibility & contrast

On white

6.39
#7040CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7040CB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7040CB#FFFFFF#000000##FFFFFF
##7040CB1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#566281
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7040cb;
/* rgb */ color: rgb(112, 64, 203);
/* oklch */ color: oklch(50.8% 0.203 293.8);
Tailwind
colors: {
  custom: {
    50: '#a078dc',
    500: '#7040cb',
    950: '#000000',
  },
}
SCSS
$custom: #7040cb;
$custom-light: #a078dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7040cb",
  "rgb": {
    "r": 112,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 260.719,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50769,
    "c": 0.20257,
    "h": 293.8
  },
  "luminance": 0.11423
}

Semantic roles & 50–950 ramp

primary
#7040CB
secondary
#BDD295
accent
#E047AC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7040CB

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

Preview Lab → · Contrast checker → · Palette generator →

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