#6A339C#6A339C

#6A339C is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.165 H 304.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#6A339C
RGBrgb(106, 51, 156)
HSLhsl(271, 51%, 41%)
HSVhsv(271, 67%, 61%)
CMYKcmyk(32.1%, 67.3%, 0%, 38.8%)
CIE-LABlab(33.63, 44.53, -47.77)
CIE-LCHlch(33.63, 65.30, 312.99°)
OKLaboklab(44.73% 0.0935 -0.1355)
OKLCHoklch(44.73% 0.165 304.6)
XYZxyz(13.1271, 7.8322, 32.2662)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A339C #659C33
analogous
#36339C #6A339C #9C3399
triadic
#6A339C #9C6A33 #339C6A
tetradic
#6A339C #9C3633 #659C33 #33999C
square
#6A339C #9C3633 #659C33 #33999C
split-complementary
#6A339C #999C33 #339C36
monochromatic
#2B1540 #4B246E #6A339C #8949C3 #A777D3

Accessibility & contrast

On white

8.18
#6A339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A339C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A339C#FFFFFF#000000##FFFFFF
##6A339C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#114F9A
Tritanopia (blue-blind)
#614A63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a339c;
/* rgb */ color: rgb(106, 51, 156);
/* oklch */ color: oklch(44.7% 0.165 304.6);
Tailwind
colors: {
  custom: {
    50: '#996fba',
    500: '#6a339c',
    950: '#000000',
  },
}
SCSS
$custom: #6a339c;
$custom-light: #996fba;
$custom-dark: #000000;
JSON
{
  "hex": "#6a339c",
  "rgb": {
    "r": 106,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 271.429,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44732,
    "c": 0.16466,
    "h": 304.6
  },
  "luminance": 0.07832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A339C

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

Preview Lab → · Contrast checker → · Palette generator →

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