#6B1F97#6B1F97

#6B1F97 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.184 H 309.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#6B1F97
RGBrgb(107, 31, 151)
HSLhsl(278, 66%, 36%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(29.1%, 79.5%, 0%, 40.8%)
CIE-LABlab(30.26, 52.41, -50.18)
CIE-LCHlch(30.26, 72.56, 316.25°)
OKLaboklab(42.25% 0.1161 -0.1425)
OKLCHoklch(42.25% 0.184 309.2)
XYZxyz(12.1382, 6.3404, 29.8565)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F97 #4B971F
analogous
#2F1F97 #6B1F97 #971F87
triadic
#6B1F97 #976B1F #1F976B
tetradic
#6B1F97 #972F1F #4B971F #1F8797
square
#6B1F97 #972F1F #4B971F #1F8797
split-complementary
#6B1F97 #87971F #1F972F
monochromatic
#230A31 #471564 #6B1F97 #8F29CA #AA54DC

Accessibility & contrast

On white

9.26
#6B1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1F97
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F97#FFFFFF#000000##FFFFFF
##6B1F971.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#643D5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b1f97;
/* rgb */ color: rgb(107, 31, 151);
/* oklch */ color: oklch(42.2% 0.184 309.2);
Tailwind
colors: {
  custom: {
    50: '#9a64b6',
    500: '#6b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f97;
$custom-light: #9a64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f97",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 278,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42246,
    "c": 0.18382,
    "h": 309.2
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#6B1F97
secondary
#7ABF52
accent
#E93F7D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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