#6B338D#6B338D

#6B338D is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.148 H 310.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#6B338D
RGBrgb(107, 51, 141)
HSLhsl(277, 47%, 38%)
HSVhsv(277, 64%, 55%)
CMYKcmyk(24.1%, 63.8%, 0%, 44.7%)
CIE-LABlab(32.74, 41.13, -40.03)
CIE-LCHlch(32.74, 57.40, 315.78°)
OKLaboklab(43.79% 0.0959 -0.1128)
OKLCHoklch(43.79% 0.148 310.4)
XYZxyz(12.0540, 7.4168, 25.9907)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B338D #558D33
analogous
#3E338D #6B338D #8D3382
triadic
#6B338D #8D6B33 #338D6B
tetradic
#6B338D #8D3E33 #558D33 #33828D
square
#6B338D #8D3E33 #558D33 #33828D
split-complementary
#6B338D #828D33 #338D3E
monochromatic
#271233 #492360 #6B338D #8D43BA #A86FCB

Accessibility & contrast

On white

8.46
#6B338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6B338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B338D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B338D#FFFFFF#000000##FFFFFF
##6B338D1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#294E8B
Tritanopia (blue-blind)
#67445B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b338d;
/* rgb */ color: rgb(107, 51, 141);
/* oklch */ color: oklch(43.8% 0.148 310.4);
Tailwind
colors: {
  custom: {
    50: '#986eaf',
    500: '#6b338d',
    950: '#000000',
  },
}
SCSS
$custom: #6b338d;
$custom-light: #986eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#6b338d",
  "rgb": {
    "r": 107,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 277.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43789,
    "c": 0.14805,
    "h": 310.4
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#6B338D
secondary
#85B369
accent
#D75184
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6B338D

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

Preview Lab → · Contrast checker → · Palette generator →

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