#6B4798#6B4798

#6B4798 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.6% C 0.129 H 302.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6B4798
RGBrgb(107, 71, 152)
HSLhsl(267, 36%, 44%)
HSVhsv(267, 53%, 60%)
CMYKcmyk(29.6%, 53.3%, 0%, 40.4%)
CIE-LABlab(37.66, 32.65, -38.87)
CIE-LCHlch(37.66, 50.77, 310.03°)
OKLaboklab(47.62% 0.0691 -0.1095)
OKLCHoklch(47.62% 0.129 302.3)
XYZxyz(13.9829, 9.8993, 30.8738)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B4798 #749847
analogous
#474B98 #6B4798 #934798
triadic
#6B4798 #986B47 #47986B
tetradic
#6B4798 #98474B #749847 #479893
square
#6B4798 #98474B #749847 #479893
split-complementary
#6B4798 #989347 #4B9847
monochromatic
#302045 #4E346E #6B4798 #8A65B7 #A98FCB

Accessibility & contrast

On white

7.05
#6B4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6B4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B4798
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B4798#FFFFFF#000000##FFFFFF
##6B47981.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#365896
Tritanopia (blue-blind)
#635668
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6b4798;
/* rgb */ color: rgb(107, 71, 152);
/* oklch */ color: oklch(47.6% 0.129 302.3);
Tailwind
colors: {
  custom: {
    50: '#987bb7',
    500: '#6b4798',
    950: '#000000',
  },
}
SCSS
$custom: #6b4798;
$custom-light: #987bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b4798",
  "rgb": {
    "r": 107,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 266.667,
    "s": 36.323,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47618,
    "c": 0.12947,
    "h": 302.3
  },
  "luminance": 0.09899
}

Semantic roles & 50–950 ramp

primary
#6B4798
secondary
#A0B685
accent
#CC5B9A
background
#F9F7FB
surface
#F2EEF6
border
#CCC9D0
text
#0E0911
muted
#7E7B80

Preview Lab

Preview with #6B4798

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

Preview Lab → · Contrast checker → · Palette generator →

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