#7340C8#7340C8

#7340C8 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.199 H 295.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7340C8
RGBrgb(115, 64, 200)
HSLhsl(263, 55%, 52%)
HSVhsv(263, 68%, 78%)
CMYKcmyk(42.5%, 68%, 0%, 21.6%)
CIE-LABlab(40.38, 51.00, -62.87)
CIE-LCHlch(40.38, 80.96, 309.05°)
OKLaboklab(50.84% 0.0862 -0.1797)
OKLCHoklch(50.84% 0.199 295.6)
XYZxyz(19.3262, 11.4813, 55.8303)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C8 #95C840
analogous
#4051C8 #7340C8 #B740C8
triadic
#7340C8 #C87340 #40C873
tetradic
#7340C8 #C84051 #95C840 #40C8B7
square
#7340C8 #C84051 #95C840 #40C8B7
split-complementary
#7340C8 #C8B740 #51C840
monochromatic
#3D206E #572D9D #7340C8 #9670D6 #B99FE3

Accessibility & contrast

On white

6.37
#7340C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7340C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C8#FFFFFF#000000##FFFFFF
##7340C81.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#5C617F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7340c8;
/* rgb */ color: rgb(115, 64, 200);
/* oklch */ color: oklch(50.8% 0.199 295.6);
Tailwind
colors: {
  custom: {
    50: '#a278da',
    500: '#7340c8',
    950: '#000000',
  },
}
SCSS
$custom: #7340c8;
$custom-light: #a278da;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c8",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 262.5,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50841,
    "c": 0.19932,
    "h": 295.6
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#7340C8
secondary
#B9D094
accent
#DF49A7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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