#6A339D#6A339D

#6A339D is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.166 H 304.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6A339D
RGBrgb(106, 51, 157)
HSLhsl(271, 51%, 41%)
HSVhsv(271, 68%, 62%)
CMYKcmyk(32.5%, 67.5%, 0%, 38.4%)
CIE-LABlab(33.70, 44.77, -48.26)
CIE-LCHlch(33.70, 65.83, 312.85°)
OKLaboklab(44.81% 0.0934 -0.137)
OKLCHoklch(44.81% 0.166 304.3)
XYZxyz(13.2121, 7.8662, 32.7140)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A339D #669D33
analogous
#35339D #6A339D #9D339B
triadic
#6A339D #9D6A33 #339D6A
tetradic
#6A339D #9D3533 #669D33 #339B9D
square
#6A339D #9D3533 #669D33 #339B9D
split-complementary
#6A339D #9B9D33 #339D35
monochromatic
#2C1541 #4B246F #6A339D #8949C4 #A777D3

Accessibility & contrast

On white

8.16
#6A339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6A339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A339D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A339D#FFFFFF#000000##FFFFFF
##6A339D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#0E4F9B
Tritanopia (blue-blind)
#604A63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a339d;
/* rgb */ color: rgb(106, 51, 157);
/* oklch */ color: oklch(44.8% 0.166 304.3);
Tailwind
colors: {
  custom: {
    50: '#996fbb',
    500: '#6a339d',
    950: '#000000',
  },
}
SCSS
$custom: #6a339d;
$custom-light: #996fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a339d",
  "rgb": {
    "r": 106,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 271.132,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44806,
    "c": 0.16579,
    "h": 304.3
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#6A339D
secondary
#94BB70
accent
#DA4D91
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A339D

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

Preview Lab → · Contrast checker → · Palette generator →

#6A339D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva