#6A166C#6A166C

#6A166C is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.154 H 327.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#6A166C
RGBrgb(106, 22, 108)
HSLhsl(299, 66%, 25%)
HSVhsv(299, 80%, 42%)
CMYKcmyk(1.9%, 79.6%, 0%, 57.6%)
CIE-LABlab(25.93, 46.65, -30.14)
CIE-LCHlch(25.93, 55.54, 327.14°)
OKLaboklab(38.18% 0.1291 -0.0837)
OKLCHoklch(38.18% 0.154 327.1)
XYZxyz(8.9374, 4.7213, 14.6250)
Luminance0.0472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A166C #186C16
analogous
#3F166C #6A166C #6C1643
triadic
#6A166C #6C6A16 #166C6A
tetradic
#6A166C #6C3F16 #186C16 #16436C
square
#6A166C #6C3F16 #186C16 #16436C
split-complementary
#6A166C #436C16 #166C3F
monochromatic
#190519 #380C39 #6A166C #9C209F #CE2BD2

Accessibility & contrast

On white

10.80
#6A166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#6A166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A166C
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A166C#FFFFFF#000000##FFFFFF
##6A166C1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376E
Deuteranopia (green-blind)
#2C416A
Tritanopia (blue-blind)
#6D2540
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6a166c;
/* rgb */ color: rgb(106, 22, 108);
/* oklch */ color: oklch(38.2% 0.154 327.1);
Tailwind
colors: {
  custom: {
    50: '#985e96',
    500: '#6a166c',
    950: '#000000',
  },
}
SCSS
$custom: #6a166c;
$custom-light: #985e96;
$custom-dark: #000000;
JSON
{
  "hex": "#6a166c",
  "rgb": {
    "r": 106,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 298.605,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3818,
    "c": 0.15391,
    "h": 327.1
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#6A166C
secondary
#3EA23C
accent
#E93F43
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6A166C

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

Preview Lab → · Contrast checker → · Palette generator →

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