#6D2797#6D2797

#6D2797 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.176 H 309.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#6D2797
RGBrgb(109, 39, 151)
HSLhsl(278, 59%, 37%)
HSVhsv(278, 74%, 59%)
CMYKcmyk(27.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(31.66, 49.62, -47.89)
CIE-LCHlch(31.66, 68.96, 316.02°)
OKLaboklab(43.3% 0.1114 -0.1357)
OKLCHoklch(43.3% 0.176 309.4)
XYZxyz(12.6170, 6.9369, 29.9464)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2797 #519727
analogous
#352797 #6D2797 #972789
triadic
#6D2797 #976D27 #27976D
tetradic
#6D2797 #973527 #519727 #278997
square
#6D2797 #973527 #519727 #278997
split-complementary
#6D2797 #899727 #279735
monochromatic
#270E36 #4A1A66 #6D2797 #9034C8 #AB62D6

Accessibility & contrast

On white

8.80
#6D2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6D2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D2797
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D2797#FFFFFF#000000##FFFFFF
##6D27971.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#0A4B95
Tritanopia (blue-blind)
#67415D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6d2797;
/* rgb */ color: rgb(109, 39, 151);
/* oklch */ color: oklch(43.3% 0.176 309.4);
Tailwind
colors: {
  custom: {
    50: '#9b68b6',
    500: '#6d2797',
    950: '#000000',
  },
}
SCSS
$custom: #6d2797;
$custom-light: #9b68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2797",
  "rgb": {
    "r": 109,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 277.5,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.433,
    "c": 0.17561,
    "h": 309.4
  },
  "luminance": 0.06937
}

Semantic roles & 50–950 ramp

primary
#6D2797
secondary
#81BC5E
accent
#E24680
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0711
muted
#7E7A80

Preview Lab

Preview with #6D2797

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

Preview Lab → · Contrast checker → · Palette generator →

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