#7340AF#7340AF

#7340AF is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.170 H 301.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7340AF
RGBrgb(115, 64, 175)
HSLhsl(268, 46%, 47%)
HSVhsv(268, 63%, 69%)
CMYKcmyk(34.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(38.56, 44.52, -51.15)
CIE-LCHlch(38.56, 67.81, 311.04°)
OKLaboklab(48.96% 0.089 -0.1452)
OKLCHoklch(48.96% 0.17 301.5)
XYZxyz(16.6397, 10.4067, 41.6812)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340AF #7CAF40
analogous
#4044AF #7340AF #AB40AF
triadic
#7340AF #AF7340 #40AF73
tetradic
#7340AF #AF4044 #7CAF40 #40AFAB
square
#7340AF #AF4044 #7CAF40 #40AFAB
split-complementary
#7340AF #AFAB40 #44AF40
monochromatic
#381F55 #563082 #7340AF #9265C7 #B292D7

Accessibility & contrast

On white

6.82
#7340AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7340AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340AF
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340AF#FFFFFF#000000##FFFFFF
##7340AF1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#185AAD
Tritanopia (blue-blind)
#675871
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7340af;
/* rgb */ color: rgb(115, 64, 175);
/* oklch */ color: oklch(49.0% 0.170 301.5);
Tailwind
colors: {
  custom: {
    50: '#a078c8',
    500: '#7340af',
    950: '#000000',
  },
}
SCSS
$custom: #7340af;
$custom-light: #a078c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7340af",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 267.568,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4896,
    "c": 0.17034,
    "h": 301.5
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#7340AF
secondary
#A8C388
accent
#D65299
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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