#6A2097#6A2097

#6A2097 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.183 H 308.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#6A2097
RGBrgb(106, 32, 151)
HSLhsl(277, 65%, 36%)
HSVhsv(277, 79%, 59%)
CMYKcmyk(29.8%, 78.8%, 0%, 40.8%)
CIE-LABlab(30.23, 51.86, -50.22)
CIE-LCHlch(30.23, 72.19, 315.92°)
OKLaboklab(42.2% 0.1139 -0.1426)
OKLCHoklch(42.2% 0.183 308.6)
XYZxyz(12.0451, 6.3318, 29.8598)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2097 #4D9720
analogous
#2E2097 #6A2097 #972088
triadic
#6A2097 #976A20 #20976A
tetradic
#6A2097 #972E20 #4D9720 #208897
square
#6A2097 #972E20 #4D9720 #208897
split-complementary
#6A2097 #889720 #20972E
monochromatic
#230B32 #471564 #6A2097 #8D2BC9 #A956DB

Accessibility & contrast

On white

9.27
#6A2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6A2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2097
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2097#FFFFFF#000000##FFFFFF
##6A20971.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a2097;
/* rgb */ color: rgb(106, 32, 151);
/* oklch */ color: oklch(42.2% 0.183 308.6);
Tailwind
colors: {
  custom: {
    50: '#9964b6',
    500: '#6a2097',
    950: '#000000',
  },
}
SCSS
$custom: #6a2097;
$custom-light: #9964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2097",
  "rgb": {
    "r": 106,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 277.311,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.422,
    "c": 0.18252,
    "h": 308.6
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#6A2097
secondary
#7CBF54
accent
#E8407F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2097

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

Preview Lab → · Contrast checker → · Palette generator →

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