#6D4798#6D4798

#6D4798 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.8% C 0.130 H 303.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#6D4798
RGBrgb(109, 71, 152)
HSLhsl(268, 36%, 44%)
HSVhsv(268, 53%, 60%)
CMYKcmyk(28.3%, 53.3%, 0%, 40.4%)
CIE-LABlab(37.89, 33.20, -38.50)
CIE-LCHlch(37.89, 50.84, 310.77°)
OKLaboklab(47.84% 0.0718 -0.1083)
OKLCHoklch(47.84% 0.13 303.5)
XYZxyz(14.2262, 10.0247, 30.8852)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D4798 #729847
analogous
#474998 #6D4798 #954798
triadic
#6D4798 #986D47 #47986D
tetradic
#6D4798 #984749 #729847 #479895
square
#6D4798 #984749 #729847 #479895
split-complementary
#6D4798 #989547 #499847
monochromatic
#312045 #4F346E #6D4798 #8C65B7 #AB8FCB

Accessibility & contrast

On white

6.99
#6D4798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6D4798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D4798
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D4798#FFFFFF#000000##FFFFFF
##6D47981.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589B
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#655668
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6d4798;
/* rgb */ color: rgb(109, 71, 152);
/* oklch */ color: oklch(47.8% 0.130 303.5);
Tailwind
colors: {
  custom: {
    50: '#997bb7',
    500: '#6d4798',
    950: '#000000',
  },
}
SCSS
$custom: #6d4798;
$custom-light: #997bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d4798",
  "rgb": {
    "r": 109,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 268.148,
    "s": 36.323,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47837,
    "c": 0.12995,
    "h": 303.5
  },
  "luminance": 0.10025
}

Semantic roles & 50–950 ramp

primary
#6D4798
secondary
#9FB685
accent
#CC5B97
background
#F9F7FB
surface
#F2EEF6
border
#CCC9D0
text
#0E0911
muted
#7E7B80

Preview Lab

Preview with #6D4798

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

Preview Lab → · Contrast checker → · Palette generator →

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