#7340B2#7340B2

#7340B2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.174 H 300.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7340B2
RGBrgb(115, 64, 178)
HSLhsl(267, 47%, 47%)
HSVhsv(267, 64%, 70%)
CMYKcmyk(35.4%, 64%, 0%, 30.2%)
CIE-LABlab(38.77, 45.29, -52.59)
CIE-LCHlch(38.77, 69.40, 310.74°)
OKLaboklab(49.18% 0.0888 -0.1494)
OKLCHoklch(49.18% 0.174 300.7)
XYZxyz(16.9376, 10.5259, 43.2502)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340B2 #7FB240
analogous
#4046B2 #7340B2 #AC40B2
triadic
#7340B2 #B27340 #40B273
tetradic
#7340B2 #B24046 #7FB240 #40B2AC
square
#7340B2 #B24046 #7FB240 #40B2AC
split-complementary
#7340B2 #B2AC40 #46B240
monochromatic
#392058 #563085 #7340B2 #9267C8 #B394D8

Accessibility & contrast

On white

6.76
#7340B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7340B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340B2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340B2#FFFFFF#000000##FFFFFF
##7340B21.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#115BB0
Tritanopia (blue-blind)
#665973
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7340b2;
/* rgb */ color: rgb(115, 64, 178);
/* oklch */ color: oklch(49.2% 0.174 300.7);
Tailwind
colors: {
  custom: {
    50: '#a078ca',
    500: '#7340b2',
    950: '#000000',
  },
}
SCSS
$custom: #7340b2;
$custom-light: #a078ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7340b2",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 266.842,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49176,
    "c": 0.17385,
    "h": 300.7
  },
  "luminance": 0.10526
}

Semantic roles & 50–950 ramp

primary
#7340B2
secondary
#AAC48A
accent
#D7519B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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