#6C1F99#6C1F99

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

Color values

HEX#6C1F99
RGBrgb(108, 31, 153)
HSLhsl(278, 66%, 36%)
HSVhsv(278, 80%, 60%)
CMYKcmyk(29.4%, 79.7%, 0%, 40%)
CIE-LABlab(30.56, 53.04, -50.90)
CIE-LCHlch(30.56, 73.51, 316.18°)
OKLaboklab(42.54% 0.1171 -0.1446)
OKLCHoklch(42.54% 0.186 309)
XYZxyz(12.4229, 6.4683, 30.7249)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1F99 #4C991F
analogous
#2F1F99 #6C1F99 #991F89
triadic
#6C1F99 #996C1F #1F996C
tetradic
#6C1F99 #992F1F #4C991F #1F8999
square
#6C1F99 #992F1F #4C991F #1F8999
split-complementary
#6C1F99 #89991F #1F992F
monochromatic
#240A33 #481566 #6C1F99 #9029CC #AB56DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C1F99#FFFFFF#000000##FFFFFF
##6C1F991.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)
#00459C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#653E5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c1f99;
/* rgb */ color: rgb(108, 31, 153);
/* oklch */ color: oklch(42.5% 0.186 309.0);
Tailwind
colors: {
  custom: {
    50: '#9b64b8',
    500: '#6c1f99',
    950: '#000000',
  },
}
SCSS
$custom: #6c1f99;
$custom-light: #9b64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1f99",
  "rgb": {
    "r": 108,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 277.869,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.186,
    "h": 309
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#6C1F99
secondary
#7CC054
accent
#E93F7E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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