#6D1D98#6D1D98

#6D1D98 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.187 H 310.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#6D1D98
RGBrgb(109, 29, 152)
HSLhsl(279, 68%, 35%)
HSVhsv(279, 81%, 60%)
CMYKcmyk(28.3%, 80.9%, 0%, 40.4%)
CIE-LABlab(30.39, 53.70, -50.56)
CIE-LCHlch(30.39, 73.76, 316.73°)
OKLaboklab(42.43% 0.1203 -0.1435)
OKLCHoklch(42.43% 0.187 310)
XYZxyz(12.4124, 6.3972, 30.2806)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1D98 #48981D
analogous
#2F1D98 #6D1D98 #981D86
triadic
#6D1D98 #986D1D #1D986D
tetradic
#6D1D98 #982F1D #48981D #1D8698
square
#6D1D98 #982F1D #48981D #1D8698
split-complementary
#6D1D98 #86981D #1D982F
monochromatic
#230931 #481365 #6D1D98 #9227CB #AD52DE

Accessibility & contrast

On white

9.21
#6D1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6D1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1D98
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1D98#FFFFFF#000000##FFFFFF
##6D1D981.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d1d98;
/* rgb */ color: rgb(109, 29, 152);
/* oklch */ color: oklch(42.4% 0.187 310.0);
Tailwind
colors: {
  custom: {
    50: '#9c64b7',
    500: '#6d1d98',
    950: '#000000',
  },
}
SCSS
$custom: #6d1d98;
$custom-light: #9c64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1d98",
  "rgb": {
    "r": 109,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 279.024,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4243,
    "c": 0.18728,
    "h": 310
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#6D1D98
secondary
#77C150
accent
#EB3D7A
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6D1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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