#7340BD#7340BD

#7340BD is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.187 H 298.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7340BD
RGBrgb(115, 64, 189)
HSLhsl(264, 49%, 50%)
HSVhsv(264, 66%, 74%)
CMYKcmyk(39.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(39.56, 48.13, -57.79)
CIE-LCHlch(39.56, 75.21, 309.79°)
OKLaboklab(49.99% 0.0877 -0.1648)
OKLCHoklch(49.99% 0.187 298)
XYZxyz(18.0866, 10.9855, 49.3018)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340BD #8ABD40
analogous
#404CBD #7340BD #B240BD
triadic
#7340BD #BD7340 #40BD73
tetradic
#7340BD #BD404C #8ABD40 #40BDB2
square
#7340BD #BD404C #8ABD40 #40BDB2
split-complementary
#7340BD #BDB240 #4CBD40
monochromatic
#3B2162 #57318F #7340BD #946DCD #B69ADD

Accessibility & contrast

On white

6.57
#7340BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7340BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340BD
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340BD#FFFFFF#000000##FFFFFF
##7340BD1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#615D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7340bd;
/* rgb */ color: rgb(115, 64, 189);
/* oklch */ color: oklch(50.0% 0.187 298.0);
Tailwind
colors: {
  custom: {
    50: '#a178d2',
    500: '#7340bd',
    950: '#000000',
  },
}
SCSS
$custom: #7340bd;
$custom-light: #a178d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7340bd",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 264.48,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49991,
    "c": 0.18667,
    "h": 298
  },
  "luminance": 0.10986
}

Semantic roles & 50–950 ramp

primary
#7340BD
secondary
#B2C990
accent
#D94FA1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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