#6A1F9D#6A1F9D

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

Color values

HEX#6A1F9D
RGBrgb(106, 31, 157)
HSLhsl(276, 67%, 37%)
HSVhsv(276, 80%, 62%)
CMYKcmyk(32.5%, 80.3%, 0%, 38.4%)
CIE-LABlab(30.59, 53.58, -53.31)
CIE-LCHlch(30.59, 75.58, 315.14°)
OKLaboklab(42.6% 0.1133 -0.1517)
OKLCHoklch(42.6% 0.189 306.7)
XYZxyz(12.5183, 6.4786, 32.4828)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F9D #529D1F
analogous
#2B1F9D #6A1F9D #9D1F91
triadic
#6A1F9D #9D6A1F #1F9D6A
tetradic
#6A1F9D #9D2B1F #529D1F #1F919D
square
#6A1F9D #9D2B1F #529D1F #1F919D
split-complementary
#6A1F9D #919D1F #1F9D2B
monochromatic
#250B37 #47156A #6A1F9D #8D29D0 #A858DE

Accessibility & contrast

On white

9.15
#6A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1F9D
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F9D#FFFFFF#000000##FFFFFF
##6A1F9D1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#61405E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a1f9d;
/* rgb */ color: rgb(106, 31, 157);
/* oklch */ color: oklch(42.6% 0.189 306.7);
Tailwind
colors: {
  custom: {
    50: '#9a64bb',
    500: '#6a1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f9d;
$custom-light: #9a64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f9d",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 275.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.426,
    "c": 0.18932,
    "h": 306.7
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#6A1F9D
secondary
#82C256
accent
#EA3E84
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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