#6B338E#6B338E

#6B338E is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.149 H 310.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#6B338E
RGBrgb(107, 51, 142)
HSLhsl(277, 47%, 38%)
HSVhsv(277, 64%, 56%)
CMYKcmyk(24.6%, 64.1%, 0%, 44.3%)
CIE-LABlab(32.80, 41.37, -40.55)
CIE-LCHlch(32.80, 57.93, 315.58°)
OKLaboklab(43.86% 0.0959 -0.1143)
OKLCHoklch(43.86% 0.149 310)
XYZxyz(12.1288, 7.4467, 26.3844)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B338E #568E33
analogous
#3D338E #6B338E #8E3383
triadic
#6B338E #8E6B33 #338E6B
tetradic
#6B338E #8E3D33 #568E33 #33838E
square
#6B338E #8E3D33 #568E33 #33838E
split-complementary
#6B338E #838E33 #338E3D
monochromatic
#271334 #492361 #6B338E #8D43BB #A870CC

Accessibility & contrast

On white

8.44
#6B338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6B338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B338E
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B338E#FFFFFF#000000##FFFFFF
##6B338E1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#284E8C
Tritanopia (blue-blind)
#66455B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b338e;
/* rgb */ color: rgb(107, 51, 142);
/* oklch */ color: oklch(43.9% 0.149 310.0);
Tailwind
colors: {
  custom: {
    50: '#986eb0',
    500: '#6b338e',
    950: '#000000',
  },
}
SCSS
$custom: #6b338e;
$custom-light: #986eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b338e",
  "rgb": {
    "r": 107,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 276.923,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43857,
    "c": 0.14917,
    "h": 310
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#6B338E
secondary
#86B469
accent
#D75184
background
#F9F6FA
surface
#F2ECF5
border
#CCC7CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6B338E

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

Preview Lab → · Contrast checker → · Palette generator →

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