#6A2197#6A2197

#6A2197 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.181 H 308.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#6A2197
RGBrgb(106, 33, 151)
HSLhsl(277, 64%, 36%)
HSVhsv(277, 78%, 59%)
CMYKcmyk(29.8%, 78.1%, 0%, 40.8%)
CIE-LABlab(30.37, 51.48, -50.01)
CIE-LCHlch(30.37, 71.77, 315.83°)
OKLaboklab(42.29% 0.113 -0.142)
OKLCHoklch(42.29% 0.181 308.5)
XYZxyz(12.0725, 6.3865, 29.8689)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2197 #4E9721
analogous
#2F2197 #6A2197 #972189
triadic
#6A2197 #976A21 #21976A
tetradic
#6A2197 #972F21 #4E9721 #218997
square
#6A2197 #972F21 #4E9721 #218997
split-complementary
#6A2197 #899721 #21972F
monochromatic
#230B33 #471665 #6A2197 #8D2CC9 #A958DA

Accessibility & contrast

On white

9.22
#6A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6A2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2197
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2197#FFFFFF#000000##FFFFFF
##6A21971.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a2197;
/* rgb */ color: rgb(106, 33, 151);
/* oklch */ color: oklch(42.3% 0.181 308.5);
Tailwind
colors: {
  custom: {
    50: '#9965b6',
    500: '#6a2197',
    950: '#000000',
  },
}
SCSS
$custom: #6a2197;
$custom-light: #9965b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2197",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 277.119,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42294,
    "c": 0.18148,
    "h": 308.5
  },
  "luminance": 0.06386
}

Semantic roles & 50–950 ramp

primary
#6A2197
secondary
#7DBE55
accent
#E74180
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2197

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

Preview Lab → · Contrast checker → · Palette generator →

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