#7340CB#7340CB

#7340CB is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.203 H 295.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7340CB
RGBrgb(115, 64, 203)
HSLhsl(262, 57%, 52%)
HSVhsv(262, 68%, 80%)
CMYKcmyk(43.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.61, 51.79, -64.24)
CIE-LCHlch(40.61, 82.52, 308.88°)
OKLaboklab(51.08% 0.0858 -0.1837)
OKLCHoklch(51.08% 0.203 295)
XYZxyz(19.6802, 11.6229, 57.6949)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340CB #98CB40
analogous
#4053CB #7340CB #B840CB
triadic
#7340CB #CB7340 #40CB73
tetradic
#7340CB #CB4053 #98CB40 #40CBB8
square
#7340CB #CB4053 #98CB40 #40CBB8
split-complementary
#7340CB #CBB840 #53CB40
monochromatic
#3D1F72 #572CA2 #7340CB #9670D8 #BAA0E5

Accessibility & contrast

On white

6.32
#7340CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7340CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340CB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340CB#FFFFFF#000000##FFFFFF
##7340CB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#5B6281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7340cb;
/* rgb */ color: rgb(115, 64, 203);
/* oklch */ color: oklch(51.1% 0.203 295.0);
Tailwind
colors: {
  custom: {
    50: '#a278dc',
    500: '#7340cb',
    950: '#000000',
  },
}
SCSS
$custom: #7340cb;
$custom-light: #a278dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7340cb",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 262.014,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51078,
    "c": 0.20275,
    "h": 295
  },
  "luminance": 0.11623
}

Semantic roles & 50–950 ramp

primary
#7340CB
secondary
#BBD295
accent
#E047A8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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