#6A1B97#6A1B97

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

Color values

HEX#6A1B97
RGBrgb(106, 27, 151)
HSLhsl(278, 70%, 35%)
HSVhsv(278, 82%, 59%)
CMYKcmyk(29.8%, 82.1%, 0%, 40.8%)
CIE-LABlab(29.62, 53.64, -51.22)
CIE-LCHlch(29.62, 74.17, 316.32°)
OKLaboklab(41.77% 0.118 -0.1456)
OKLCHoklch(41.77% 0.187 309)
XYZxyz(11.9206, 6.0826, 29.8183)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B97 #48971B
analogous
#2C1B97 #6A1B97 #971B86
triadic
#6A1B97 #976A1B #1B976A
tetradic
#6A1B97 #972C1B #48971B #1B8697
square
#6A1B97 #972C1B #48971B #1B8697
split-complementary
#6A1B97 #86971B #1B972C
monochromatic
#21082F #461263 #6A1B97 #8E24CB #AA4DDF

Accessibility & contrast

On white

9.47
#6A1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6A1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B97
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B97#FFFFFF#000000##FFFFFF
##6A1B971.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#633C5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1b97;
/* rgb */ color: rgb(106, 27, 151);
/* oklch */ color: oklch(41.8% 0.187 309.0);
Tailwind
colors: {
  custom: {
    50: '#9a62b6',
    500: '#6a1b97',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b97;
$custom-light: #9a62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b97",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 278.226,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4177,
    "c": 0.18736,
    "h": 309
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#6A1B97
secondary
#77C14C
accent
#EC3B7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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