#6B1F9D#6B1F9D

#6B1F9D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.7% C 0.190 H 307.2°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#6B1F9D
RGBrgb(107, 31, 157)
HSLhsl(276, 67%, 37%)
HSVhsv(276, 80%, 62%)
CMYKcmyk(31.8%, 80.3%, 0%, 38.4%)
CIE-LABlab(30.74, 53.75, -53.06)
CIE-LCHlch(30.74, 75.53, 315.37°)
OKLaboklab(42.73% 0.1147 -0.1509)
OKLCHoklch(42.73% 0.19 307.2)
XYZxyz(12.6379, 6.5403, 32.4884)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F9D #519D1F
analogous
#2C1F9D #6B1F9D #9D1F90
triadic
#6B1F9D #9D6B1F #1F9D6B
tetradic
#6B1F9D #9D2C1F #519D1F #1F909D
square
#6B1F9D #9D2C1F #519D1F #1F909D
split-complementary
#6B1F9D #909D1F #1F9D2C
monochromatic
#250B37 #48156A #6B1F9D #8E29D0 #A958DE

Accessibility & contrast

On white

9.10
#6B1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6B1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1F9D
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F9D#FFFFFF#000000##FFFFFF
##6B1F9D1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#62405E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b1f9d;
/* rgb */ color: rgb(107, 31, 157);
/* oklch */ color: oklch(42.7% 0.190 307.2);
Tailwind
colors: {
  custom: {
    50: '#9b64bb',
    500: '#6b1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f9d;
$custom-light: #9b64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f9d",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 276.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42733,
    "c": 0.18957,
    "h": 307.2
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

primary
#6B1F9D
secondary
#81C256
accent
#EA3E82
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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