#6A1B99#6A1B99

#6A1B99 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.189 H 308.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#6A1B99
RGBrgb(106, 27, 153)
HSLhsl(278, 70%, 35%)
HSVhsv(278, 82%, 60%)
CMYKcmyk(30.7%, 82.4%, 0%, 40%)
CIE-LABlab(29.78, 54.08, -52.18)
CIE-LCHlch(29.78, 75.15, 316.02°)
OKLaboklab(41.94% 0.1175 -0.1484)
OKLCHoklch(41.94% 0.189 308.4)
XYZxyz(12.0844, 6.1481, 30.6809)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B99 #4A991B
analogous
#2B1B99 #6A1B99 #991B89
triadic
#6A1B99 #996A1B #1B996A
tetradic
#6A1B99 #992B1B #4A991B #1B8999
square
#6A1B99 #992B1B #4A991B #1B8999
split-complementary
#6A1B99 #89991B #1B992B
monochromatic
#220931 #461265 #6A1B99 #8E24CD #AA4FE0

Accessibility & contrast

On white

9.42
#6A1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6A1B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B99
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B99#FFFFFF#000000##FFFFFF
##6A1B991.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#623C5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1b99;
/* rgb */ color: rgb(106, 27, 153);
/* oklch */ color: oklch(41.9% 0.189 308.4);
Tailwind
colors: {
  custom: {
    50: '#9a63b8',
    500: '#6a1b99',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b99;
$custom-light: #9a63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b99",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 277.619,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.18923,
    "h": 308.4
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#6A1B99
secondary
#79C24E
accent
#ED3B7D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1B99

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

Preview Lab → · Contrast checker → · Palette generator →

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