#6A1F8D#6A1F8D

#6A1F8D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.174 H 312.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#6A1F8D
RGBrgb(106, 31, 141)
HSLhsl(281, 64%, 34%)
HSVhsv(281, 78%, 55%)
CMYKcmyk(24.8%, 78%, 0%, 44.7%)
CIE-LABlab(29.33, 50.04, -45.53)
CIE-LCHlch(29.33, 67.65, 317.70°)
OKLaboklab(41.32% 0.1168 -0.1288)
OKLCHoklch(41.32% 0.174 312.2)
XYZxyz(11.2407, 5.9676, 25.7539)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F8D #428D1F
analogous
#331F8D #6A1F8D #8D1F79
triadic
#6A1F8D #8D6A1F #1F8D6A
tetradic
#6A1F8D #8D331F #428D1F #1F798D
square
#6A1F8D #8D331F #428D1F #1F798D
split-complementary
#6A1F8D #798D1F #1F8D33
monochromatic
#1F0929 #44145B #6A1F8D #902ABF #AC4ED8

Accessibility & contrast

On white

9.57
#6A1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#6A1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F8D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F8D#FFFFFF#000000##FFFFFF
##6A1F8D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#0D478B
Tritanopia (blue-blind)
#663955
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a1f8d;
/* rgb */ color: rgb(106, 31, 141);
/* oklch */ color: oklch(41.3% 0.174 312.2);
Tailwind
colors: {
  custom: {
    50: '#9964af',
    500: '#6a1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f8d;
$custom-light: #9964af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f8d",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 280.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41322,
    "c": 0.17394,
    "h": 312.2
  },
  "luminance": 0.05967
}

Semantic roles & 50–950 ramp

primary
#6A1F8D
secondary
#70BB4D
accent
#E74176
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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