#6D1C98#6D1C98

#6D1C98 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.188 H 310.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#6D1C98
RGBrgb(109, 28, 152)
HSLhsl(279, 69%, 35%)
HSVhsv(279, 82%, 60%)
CMYKcmyk(28.3%, 81.6%, 0%, 40.4%)
CIE-LABlab(30.28, 54.04, -50.75)
CIE-LCHlch(30.28, 74.13, 316.80°)
OKLaboklab(42.35% 0.1211 -0.144)
OKLCHoklch(42.35% 0.188 310.1)
XYZxyz(12.3883, 6.3490, 30.2726)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1C98 #47981C
analogous
#2F1C98 #6D1C98 #981C85
triadic
#6D1C98 #986D1C #1C986D
tetradic
#6D1C98 #982F1C #47981C #1C8598
square
#6D1C98 #982F1C #47981C #1C8598
split-complementary
#6D1C98 #85981C #1C982F
monochromatic
#230931 #481264 #6D1C98 #9226CC #AD50DF

Accessibility & contrast

On white

9.25
#6D1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6D1C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1C98
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1C98#FFFFFF#000000##FFFFFF
##6D1C981.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#673C5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d1c98;
/* rgb */ color: rgb(109, 28, 152);
/* oklch */ color: oklch(42.3% 0.188 310.1);
Tailwind
colors: {
  custom: {
    50: '#9c63b7',
    500: '#6d1c98',
    950: '#000000',
  },
}
SCSS
$custom: #6d1c98;
$custom-light: #9c63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1c98",
  "rgb": {
    "r": 109,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 279.194,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42348,
    "c": 0.18822,
    "h": 310.1
  },
  "luminance": 0.06349
}

Semantic roles & 50–950 ramp

primary
#6D1C98
secondary
#76C14E
accent
#EC3C79
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6D1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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