#6B1F94#6B1F94

#6B1F94 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.181 H 310.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#6B1F94
RGBrgb(107, 31, 148)
HSLhsl(279, 65%, 35%)
HSVhsv(279, 79%, 58%)
CMYKcmyk(27.7%, 79.1%, 0%, 42%)
CIE-LABlab(30.02, 51.75, -48.72)
CIE-LCHlch(30.02, 71.08, 316.73°)
OKLaboklab(42.01% 0.1168 -0.1382)
OKLCHoklch(42.01% 0.181 310.2)
XYZxyz(11.8976, 6.2442, 28.5897)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F94 #48941F
analogous
#301F94 #6B1F94 #941F83
triadic
#6B1F94 #946B1F #1F946B
tetradic
#6B1F94 #94301F #48941F #1F8394
square
#6B1F94 #94301F #48941F #1F8394
split-complementary
#6B1F94 #83941F #1F9430
monochromatic
#220A2F #461461 #6B1F94 #902AC7 #AB53DB

Accessibility & contrast

On white

9.34
#6B1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6B1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1F94
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F94#FFFFFF#000000##FFFFFF
##6B1F941.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#653C59
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b1f94;
/* rgb */ color: rgb(107, 31, 148);
/* oklch */ color: oklch(42.0% 0.181 310.2);
Tailwind
colors: {
  custom: {
    50: '#9a64b4',
    500: '#6b1f94',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f94;
$custom-light: #9a64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f94",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 278.974,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.18095,
    "h": 310.2
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#6B1F94
secondary
#77BE51
accent
#E83F7B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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