#7340BC#7340BC

#7340BC is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.185 H 298.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7340BC
RGBrgb(115, 64, 188)
HSLhsl(265, 49%, 49%)
HSVhsv(265, 66%, 74%)
CMYKcmyk(38.8%, 66%, 0%, 26.3%)
CIE-LABlab(39.48, 47.87, -57.32)
CIE-LCHlch(39.48, 74.68, 309.86°)
OKLaboklab(49.92% 0.0879 -0.1634)
OKLCHoklch(49.92% 0.186 298.3)
XYZxyz(17.9784, 10.9422, 48.7321)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340BC #89BC40
analogous
#404BBC #7340BC #B140BC
triadic
#7340BC #BC7340 #40BC73
tetradic
#7340BC #BC404B #89BC40 #40BCB1
square
#7340BC #BC404B #89BC40 #40BCB1
split-complementary
#7340BC #BCB140 #4BBC40
monochromatic
#3B2161 #57308E #7340BC #946CCD #B59ADD

Accessibility & contrast

On white

6.59
#7340BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7340BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340BC
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340BC#FFFFFF#000000##FFFFFF
##7340BC1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#625D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7340bc;
/* rgb */ color: rgb(115, 64, 188);
/* oklch */ color: oklch(49.9% 0.185 298.3);
Tailwind
colors: {
  custom: {
    50: '#a178d1',
    500: '#7340bc',
    950: '#000000',
  },
}
SCSS
$custom: #7340bc;
$custom-light: #a178d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7340bc",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 264.677,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49916,
    "c": 0.1855,
    "h": 298.3
  },
  "luminance": 0.10942
}

Semantic roles & 50–950 ramp

primary
#7340BC
secondary
#B1C98F
accent
#D94FA0
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7340BC

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

Preview Lab → · Contrast checker → · Palette generator →

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