#6B338F#6B338F

#6B338F is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.150 H 309.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6B338F
RGBrgb(107, 51, 143)
HSLhsl(277, 47%, 38%)
HSVhsv(277, 64%, 56%)
CMYKcmyk(25.2%, 64.3%, 0%, 43.9%)
CIE-LABlab(32.87, 41.61, -41.05)
CIE-LCHlch(32.87, 58.45, 315.38°)
OKLaboklab(43.93% 0.0958 -0.1158)
OKLCHoklch(43.93% 0.15 309.6)
XYZxyz(12.2042, 7.4768, 26.7815)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B338F #578F33
analogous
#3D338F #6B338F #8F3385
triadic
#6B338F #8F6B33 #338F6B
tetradic
#6B338F #8F3D33 #578F33 #33858F
square
#6B338F #8F3D33 #578F33 #33858F
split-complementary
#6B338F #858F33 #338F3D
monochromatic
#271335 #492362 #6B338F #8D43BC #A870CC

Accessibility & contrast

On white

8.42
#6B338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#6B338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B338F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B338F#FFFFFF#000000##FFFFFF
##6B338F1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034B92
Deuteranopia (green-blind)
#274E8D
Tritanopia (blue-blind)
#66455C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b338f;
/* rgb */ color: rgb(107, 51, 143);
/* oklch */ color: oklch(43.9% 0.150 309.6);
Tailwind
colors: {
  custom: {
    50: '#986eb0',
    500: '#6b338f',
    950: '#000000',
  },
}
SCSS
$custom: #6b338f;
$custom-light: #986eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b338f",
  "rgb": {
    "r": 107,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 276.522,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43926,
    "c": 0.1503,
    "h": 309.6
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#6B338F
secondary
#87B46A
accent
#D75185
background
#F9F6FA
surface
#F2ECF5
border
#CCC7CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6B338F

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

Preview Lab → · Contrast checker → · Palette generator →

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