#6A1F97#6A1F97

#6A1F97 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.184 H 308.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#6A1F97
RGBrgb(106, 31, 151)
HSLhsl(278, 66%, 36%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(29.8%, 79.5%, 0%, 40.8%)
CIE-LABlab(30.11, 52.23, -50.43)
CIE-LCHlch(30.11, 72.61, 316.00°)
OKLaboklab(42.11% 0.1147 -0.1433)
OKLCHoklch(42.11% 0.184 308.7)
XYZxyz(12.0186, 6.2787, 29.8509)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F97 #4C971F
analogous
#2E1F97 #6A1F97 #971F88
triadic
#6A1F97 #976A1F #1F976A
tetradic
#6A1F97 #972E1F #4C971F #1F8897
square
#6A1F97 #972E1F #4C971F #1F8897
split-complementary
#6A1F97 #88971F #1F972E
monochromatic
#230A31 #461564 #6A1F97 #8E29CA #A954DC

Accessibility & contrast

On white

9.31
#6A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6A1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F97
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F97#FFFFFF#000000##FFFFFF
##6A1F971.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#633D5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1f97;
/* rgb */ color: rgb(106, 31, 151);
/* oklch */ color: oklch(42.1% 0.184 308.7);
Tailwind
colors: {
  custom: {
    50: '#9964b6',
    500: '#6a1f97',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f97;
$custom-light: #9964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f97",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 277.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4211,
    "c": 0.18354,
    "h": 308.7
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#6A1F97
secondary
#7BBF52
accent
#E93F7F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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