#6A168C#6A168C

#6A168C is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.5% C 0.182 H 313.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#6A168C
RGBrgb(106, 22, 140)
HSLhsl(283, 73%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(24.3%, 84.3%, 0%, 45.1%)
CIE-LABlab(28.20, 52.88, -46.74)
CIE-LCHlch(28.20, 70.58, 318.52°)
OKLaboklab(40.5% 0.1245 -0.1323)
OKLCHoklch(40.5% 0.182 313.2)
XYZxyz(10.9635, 5.5318, 25.2961)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A168C #388C16
analogous
#2F168C #6A168C #8C1673
triadic
#6A168C #8C6A16 #168C6A
tetradic
#6A168C #8C2F16 #388C16 #16738C
square
#6A168C #8C2F16 #388C16 #16738C
split-complementary
#6A168C #738C16 #168C2F
monochromatic
#1A0522 #420E57 #6A168C #921EC1 #B13CE0

Accessibility & contrast

On white

9.97
#6A168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6A168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A168C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A168C#FFFFFF#000000##FFFFFF
##6A168C1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#663453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a168c;
/* rgb */ color: rgb(106, 22, 140);
/* oklch */ color: oklch(40.5% 0.182 313.2);
Tailwind
colors: {
  custom: {
    50: '#9960ae',
    500: '#6a168c',
    950: '#000000',
  },
}
SCSS
$custom: #6a168c;
$custom-light: #9960ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a168c",
  "rgb": {
    "r": 106,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 282.712,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.18169,
    "h": 313.2
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#6A168C
secondary
#63C03E
accent
#F0386D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A168C

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

Preview Lab → · Contrast checker → · Palette generator →

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