#6340A8#6340A8

#6340A8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.160 H 295.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6340A8
RGBrgb(99, 64, 168)
HSLhsl(260, 45%, 45%)
HSVhsv(260, 62%, 66%)
CMYKcmyk(41.1%, 61.9%, 0%, 34.1%)
CIE-LABlab(36.26, 39.06, -50.78)
CIE-LCHlch(36.26, 64.07, 307.57°)
OKLaboklab(46.72% 0.0674 -0.1447)
OKLCHoklch(46.72% 0.16 295)
XYZxyz(14.0450, 9.1463, 38.0636)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340A8 #85A840
analogous
#4051A8 #6340A8 #9740A8
triadic
#6340A8 #A86340 #40A863
tetradic
#6340A8 #A84051 #85A840 #40A897
square
#6340A8 #A84051 #85A840 #40A897
split-complementary
#6340A8 #A89740 #51A840
monochromatic
#2F1E4F #492F7C #6340A8 #8362C3 #A68ED4

Accessibility & contrast

On white

7.42
#6340A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6340A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340A8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340A8#FFFFFF#000000##FFFFFF
##6340A81.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#0254A6
Tritanopia (blue-blind)
#51576E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6340a8;
/* rgb */ color: rgb(99, 64, 168);
/* oklch */ color: oklch(46.7% 0.160 295.0);
Tailwind
colors: {
  custom: {
    50: '#9476c3',
    500: '#6340a8',
    950: '#000000',
  },
}
SCSS
$custom: #6340a8;
$custom-light: #9476c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6340a8",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 260.192,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46723,
    "c": 0.1596,
    "h": 295
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#6340A8
secondary
#ABBF85
accent
#D553A9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6340A8

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

Preview Lab → · Contrast checker → · Palette generator →

#6340A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva