#6C339F#6C339F

#6C339F is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.169 H 304.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#6C339F
RGBrgb(108, 51, 159)
HSLhsl(272, 51%, 41%)
HSVhsv(272, 68%, 62%)
CMYKcmyk(32.1%, 67.9%, 0%, 37.6%)
CIE-LABlab(34.11, 45.71, -48.81)
CIE-LCHlch(34.11, 66.87, 313.12°)
OKLaboklab(45.2% 0.096 -0.1385)
OKLCHoklch(45.2% 0.169 304.7)
XYZxyz(13.6248, 8.0591, 33.6319)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C339F #669F33
analogous
#36339F #6C339F #9F339C
triadic
#6C339F #9F6C33 #339F6C
tetradic
#6C339F #9F3633 #669F33 #339C9F
square
#6C339F #9F3633 #669F33 #339C9F
split-complementary
#6C339F #9C9F33 #339F36
monochromatic
#2D1542 #4D2471 #6C339F #8B4AC5 #A979D4

Accessibility & contrast

On white

8.04
#6C339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6C339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C339F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C339F#FFFFFF#000000##FFFFFF
##6C339F1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#0E509D
Tritanopia (blue-blind)
#634B65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c339f;
/* rgb */ color: rgb(108, 51, 159);
/* oklch */ color: oklch(45.2% 0.169 304.7);
Tailwind
colors: {
  custom: {
    50: '#9a6fbc',
    500: '#6c339f',
    950: '#000000',
  },
}
SCSS
$custom: #6c339f;
$custom-light: #9a6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c339f",
  "rgb": {
    "r": 108,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 271.667,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45198,
    "c": 0.16852,
    "h": 304.7
  },
  "luminance": 0.08059
}

Semantic roles & 50–950 ramp

primary
#6C339F
secondary
#95BC71
accent
#DB4D90
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6C339F

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

Preview Lab → · Contrast checker → · Palette generator →

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