#6B1F98#6B1F98

#6B1F98 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.185 H 308.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6B1F98
RGBrgb(107, 31, 152)
HSLhsl(278, 66%, 36%)
HSVhsv(278, 80%, 60%)
CMYKcmyk(29.6%, 79.6%, 0%, 40.4%)
CIE-LABlab(30.33, 52.64, -50.67)
CIE-LCHlch(30.33, 73.06, 316.09°)
OKLaboklab(42.33% 0.1159 -0.1439)
OKLCHoklch(42.33% 0.185 308.8)
XYZxyz(12.2197, 6.3730, 30.2861)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F98 #4C981F
analogous
#2E1F98 #6B1F98 #981F88
triadic
#6B1F98 #986B1F #1F986B
tetradic
#6B1F98 #982E1F #4C981F #1F8898
square
#6B1F98 #982E1F #4C981F #1F8898
split-complementary
#6B1F98 #88981F #1F982E
monochromatic
#230A32 #471565 #6B1F98 #8F29CB #AA55DC

Accessibility & contrast

On white

9.23
#6B1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1F98
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F98#FFFFFF#000000##FFFFFF
##6B1F981.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#643E5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b1f98;
/* rgb */ color: rgb(107, 31, 152);
/* oklch */ color: oklch(42.3% 0.185 308.8);
Tailwind
colors: {
  custom: {
    50: '#9a64b7',
    500: '#6b1f98',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f98;
$custom-light: #9a64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f98",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 277.686,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42326,
    "c": 0.18478,
    "h": 308.8
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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