#6D1F98#6D1F98

#6D1F98 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.185 H 309.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#6D1F98
RGBrgb(109, 31, 152)
HSLhsl(279, 66%, 36%)
HSVhsv(279, 80%, 60%)
CMYKcmyk(28.3%, 79.6%, 0%, 40.4%)
CIE-LABlab(30.64, 53.00, -50.16)
CIE-LCHlch(30.64, 72.97, 316.57°)
OKLaboklab(42.6% 0.1187 -0.1423)
OKLCHoklch(42.6% 0.185 309.8)
XYZxyz(12.4630, 6.4984, 30.2975)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1F98 #4A981F
analogous
#311F98 #6D1F98 #981F86
triadic
#6D1F98 #986D1F #1F986D
tetradic
#6D1F98 #98311F #4A981F #1F8698
square
#6D1F98 #98311F #4A981F #1F8698
split-complementary
#6D1F98 #86981F #1F9831
monochromatic
#240A32 #491565 #6D1F98 #9129CB #AC55DC

Accessibility & contrast

On white

9.13
#6D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6D1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1F98
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1F98#FFFFFF#000000##FFFFFF
##6D1F981.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#673D5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6d1f98;
/* rgb */ color: rgb(109, 31, 152);
/* oklch */ color: oklch(42.6% 0.185 309.8);
Tailwind
colors: {
  custom: {
    50: '#9c64b7',
    500: '#6d1f98',
    950: '#000000',
  },
}
SCSS
$custom: #6d1f98;
$custom-light: #9c64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1f98",
  "rgb": {
    "r": 109,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 278.678,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.426,
    "c": 0.18534,
    "h": 309.8
  },
  "luminance": 0.06498
}

Semantic roles & 50–950 ramp

primary
#6D1F98
secondary
#7AC053
accent
#E93F7B
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6D1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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