#7340CD#7340CD

#7340CD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.205 H 294.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7340CD
RGBrgb(115, 64, 205)
HSLhsl(262, 59%, 53%)
HSVhsv(262, 69%, 80%)
CMYKcmyk(43.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(40.77, 52.32, -65.14)
CIE-LCHlch(40.77, 83.55, 308.77°)
OKLaboklab(51.24% 0.0855 -0.1864)
OKLCHoklch(51.24% 0.205 294.6)
XYZxyz(19.9201, 11.7189, 58.9582)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340CD #9ACD40
analogous
#4054CD #7340CD #B940CD
triadic
#7340CD #CD7340 #40CD73
tetradic
#7340CD #CD4054 #9ACD40 #40CDB9
square
#7340CD #CD4054 #9ACD40 #40CDB9
split-complementary
#7340CD #CDB940 #54CD40
monochromatic
#3D1E74 #572BA5 #7340CD #9771DA #BAA1E6

Accessibility & contrast

On white

6.28
#7340CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7340CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340CD
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340CD#FFFFFF#000000##FFFFFF
##7340CD1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#5A6382
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7340cd;
/* rgb */ color: rgb(115, 64, 205);
/* oklch */ color: oklch(51.2% 0.205 294.6);
Tailwind
colors: {
  custom: {
    50: '#a279dd',
    500: '#7340cd',
    950: '#000000',
  },
}
SCSS
$custom: #7340cd;
$custom-light: #a279dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7340cd",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 261.702,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51238,
    "c": 0.20502,
    "h": 294.6
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#7340CD
secondary
#BDD396
accent
#E246A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340CD

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

Preview Lab → · Contrast checker → · Palette generator →

#7340CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva