#6B1F99#6B1F99

#6B1F99 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.186 H 308.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#6B1F99
RGBrgb(107, 31, 153)
HSLhsl(277, 66%, 36%)
HSVhsv(277, 80%, 60%)
CMYKcmyk(30.1%, 79.7%, 0%, 40%)
CIE-LABlab(30.41, 52.86, -51.15)
CIE-LCHlch(30.41, 73.55, 315.94°)
OKLaboklab(42.41% 0.1157 -0.1453)
OKLCHoklch(42.41% 0.186 308.5)
XYZxyz(12.3020, 6.4059, 30.7192)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F99 #4D991F
analogous
#2E1F99 #6B1F99 #991F8A
triadic
#6B1F99 #996B1F #1F996B
tetradic
#6B1F99 #992E1F #4D991F #1F8A99
square
#6B1F99 #992E1F #4D991F #1F8A99
split-complementary
#6B1F99 #8A991F #1F992E
monochromatic
#240A33 #471566 #6B1F99 #8F29CC #AA56DD

Accessibility & contrast

On white

9.21
#6B1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6B1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1F99
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F99#FFFFFF#000000##FFFFFF
##6B1F991.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#643E5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b1f99;
/* rgb */ color: rgb(107, 31, 153);
/* oklch */ color: oklch(42.4% 0.186 308.5);
Tailwind
colors: {
  custom: {
    50: '#9a64b8',
    500: '#6b1f99',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f99;
$custom-light: #9a64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f99",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 277.377,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42407,
    "c": 0.18573,
    "h": 308.5
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#6B1F99
secondary
#7DC054
accent
#E93F7F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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