#6D1F97#6D1F97

#6D1F97 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.184 H 310.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#6D1F97
RGBrgb(109, 31, 151)
HSLhsl(279, 66%, 36%)
HSVhsv(279, 79%, 59%)
CMYKcmyk(27.8%, 79.5%, 0%, 40.8%)
CIE-LABlab(30.56, 52.78, -49.68)
CIE-LCHlch(30.56, 72.48, 316.73°)
OKLaboklab(42.52% 0.1189 -0.1409)
OKLCHoklch(42.52% 0.184 310.2)
XYZxyz(12.3815, 6.4658, 29.8679)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1F97 #49971F
analogous
#311F97 #6D1F97 #971F85
triadic
#6D1F97 #976D1F #1F976D
tetradic
#6D1F97 #97311F #49971F #1F8597
square
#6D1F97 #97311F #49971F #1F8597
split-complementary
#6D1F97 #85971F #1F9731
monochromatic
#240A31 #481564 #6D1F97 #9229CA #AD54DC

Accessibility & contrast

On white

9.16
#6D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1F97
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1F97#FFFFFF#000000##FFFFFF
##6D1F971.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#673D5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6d1f97;
/* rgb */ color: rgb(109, 31, 151);
/* oklch */ color: oklch(42.5% 0.184 310.2);
Tailwind
colors: {
  custom: {
    50: '#9b64b6',
    500: '#6d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #6d1f97;
$custom-light: #9b64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1f97",
  "rgb": {
    "r": 109,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 279,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42521,
    "c": 0.18439,
    "h": 310.2
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

primary
#6D1F97
secondary
#79BF52
accent
#E93F7A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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