#6342AF#6342AF

#6342AF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.166 H 293.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#6342AF
RGBrgb(99, 66, 175)
HSLhsl(258, 45%, 47%)
HSVhsv(258, 62%, 69%)
CMYKcmyk(43.4%, 62.3%, 0%, 31.4%)
CIE-LABlab(37.20, 39.88, -53.44)
CIE-LCHlch(37.20, 66.68, 306.73°)
OKLaboklab(47.56% 0.0647 -0.1525)
OKLCHoklch(47.56% 0.166 293)
XYZxyz(14.8296, 9.6438, 41.6292)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342AF #8EAF42
analogous
#4258AF #6342AF #9942AF
triadic
#6342AF #AF6342 #42AF63
tetradic
#6342AF #AF4258 #8EAF42 #42AF99
square
#6342AF #AF4258 #8EAF42 #42AF99
split-complementary
#6342AF #AF9942 #58AF42
monochromatic
#312056 #4A3183 #6342AF #8568C6 #A995D7

Accessibility & contrast

On white

7.17
#6342AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6342AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6342AF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342AF#FFFFFF#000000##FFFFFF
##6342AF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#4E5B72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6342af;
/* rgb */ color: rgb(99, 66, 175);
/* oklch */ color: oklch(47.6% 0.166 293.0);
Tailwind
colors: {
  custom: {
    50: '#9578c8',
    500: '#6342af',
    950: '#000000',
  },
}
SCSS
$custom: #6342af;
$custom-light: #9578c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6342af",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 258.165,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4756,
    "c": 0.16565,
    "h": 293
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#6342AF
secondary
#B1C28A
accent
#D553AE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6342AF

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

Preview Lab → · Contrast checker → · Palette generator →

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