#7340BB#7340BB

#7340BB is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.184 H 298.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7340BB
RGBrgb(115, 64, 187)
HSLhsl(265, 49%, 49%)
HSVhsv(265, 66%, 73%)
CMYKcmyk(38.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(39.41, 47.61, -56.86)
CIE-LCHlch(39.41, 74.16, 309.94°)
OKLaboklab(49.84% 0.088 -0.162)
OKLCHoklch(49.84% 0.184 298.5)
XYZxyz(17.8710, 10.8992, 48.1663)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340BB #88BB40
analogous
#404BBB #7340BB #B140BB
triadic
#7340BB #BB7340 #40BB73
tetradic
#7340BB #BB404B #88BB40 #40BBB1
square
#7340BB #BB404B #88BB40 #40BBB1
split-complementary
#7340BB #BBB140 #4BBB40
monochromatic
#3B2160 #57308D #7340BB #946CCD #B599DC

Accessibility & contrast

On white

6.60
#7340BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7340BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340BB
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340BB#FFFFFF#000000##FFFFFF
##7340BB1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#625C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7340bb;
/* rgb */ color: rgb(115, 64, 187);
/* oklch */ color: oklch(49.8% 0.184 298.5);
Tailwind
colors: {
  custom: {
    50: '#a178d0',
    500: '#7340bb',
    950: '#000000',
  },
}
SCSS
$custom: #7340bb;
$custom-light: #a178d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7340bb",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 264.878,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4984,
    "c": 0.18434,
    "h": 298.5
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7340BB

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

Preview Lab → · Contrast checker → · Palette generator →

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