#6B3899#6B3899

#6B3899 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.3% C 0.154 H 305.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#6B3899
RGBrgb(107, 56, 153)
HSLhsl(272, 46%, 41%)
HSVhsv(272, 63%, 60%)
CMYKcmyk(30.1%, 63.4%, 0%, 40%)
CIE-LABlab(34.51, 41.40, -44.53)
CIE-LCHlch(34.51, 60.80, 312.91°)
OKLaboklab(45.33% 0.0891 -0.126)
OKLCHoklch(45.33% 0.154 305.3)
XYZxyz(13.2261, 8.2541, 31.0273)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B3899 #669938
analogous
#3A3899 #6B3899 #993896
triadic
#6B3899 #996B38 #38996B
tetradic
#6B3899 #993A38 #669938 #389699
square
#6B3899 #993A38 #669938 #389699
split-complementary
#6B3899 #969938 #38993A
monochromatic
#2C173F #4C286C #6B3899 #8A4FBF #A87CCF

Accessibility & contrast

On white

7.92
#6B3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6B3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B3899
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B3899#FFFFFF#000000##FFFFFF
##6B38991.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#634C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b3899;
/* rgb */ color: rgb(107, 56, 153);
/* oklch */ color: oklch(45.3% 0.154 305.3);
Tailwind
colors: {
  custom: {
    50: '#9972b8',
    500: '#6b3899',
    950: '#000000',
  },
}
SCSS
$custom: #6b3899;
$custom-light: #9972b8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b3899",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 271.546,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45326,
    "c": 0.15432,
    "h": 305.3
  },
  "luminance": 0.08254
}

Semantic roles & 50–950 ramp

primary
#6B3899
secondary
#95B874
accent
#D65290
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #6B3899

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

Preview Lab → · Contrast checker → · Palette generator →

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