#6B1D98#6B1D98

#6B1D98 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.187 H 309.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#6B1D98
RGBrgb(107, 29, 152)
HSLhsl(278, 68%, 35%)
HSVhsv(278, 81%, 60%)
CMYKcmyk(29.6%, 80.9%, 0%, 40.4%)
CIE-LABlab(30.09, 53.35, -51.07)
CIE-LCHlch(30.09, 73.85, 316.25°)
OKLaboklab(42.15% 0.1176 -0.1451)
OKLCHoklch(42.15% 0.187 309)
XYZxyz(12.1691, 6.2718, 30.2692)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1D98 #4A981D
analogous
#2E1D98 #6B1D98 #981D87
triadic
#6B1D98 #986B1D #1D986B
tetradic
#6B1D98 #982E1D #4A981D #1D8798
square
#6B1D98 #982E1D #4A981D #1D8798
split-complementary
#6B1D98 #87981D #1D982E
monochromatic
#230931 #471365 #6B1D98 #8F27CB #AB52DE

Accessibility & contrast

On white

9.32
#6B1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1D98
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1D98#FFFFFF#000000##FFFFFF
##6B1D981.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1d98;
/* rgb */ color: rgb(107, 29, 152);
/* oklch */ color: oklch(42.2% 0.187 309.0);
Tailwind
colors: {
  custom: {
    50: '#9a63b7',
    500: '#6b1d98',
    950: '#000000',
  },
}
SCSS
$custom: #6b1d98;
$custom-light: #9a63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1d98",
  "rgb": {
    "r": 107,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 278.049,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42154,
    "c": 0.18672,
    "h": 309
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#6B1D98
secondary
#79C150
accent
#EB3D7D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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