#6C2097#6C2097

#6C2097 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.183 H 309.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#6C2097
RGBrgb(108, 32, 151)
HSLhsl(278, 65%, 36%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(28.5%, 78.8%, 0%, 40.8%)
CIE-LABlab(30.53, 52.23, -49.72)
CIE-LCHlch(30.53, 72.11, 316.41°)
OKLaboklab(42.47% 0.1167 -0.1411)
OKLCHoklch(42.47% 0.183 309.6)
XYZxyz(12.2856, 6.4558, 29.8710)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2097 #4B9720
analogous
#302097 #6C2097 #972086
triadic
#6C2097 #976C20 #20976C
tetradic
#6C2097 #973020 #4B9720 #208697
square
#6C2097 #973020 #4B9720 #208697
split-complementary
#6C2097 #869720 #209730
monochromatic
#240B32 #481564 #6C2097 #902BC9 #AB56DB

Accessibility & contrast

On white

9.17
#6C2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6C2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2097
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2097#FFFFFF#000000##FFFFFF
##6C20971.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#663D5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c2097;
/* rgb */ color: rgb(108, 32, 151);
/* oklch */ color: oklch(42.5% 0.183 309.6);
Tailwind
colors: {
  custom: {
    50: '#9b65b6',
    500: '#6c2097',
    950: '#000000',
  },
}
SCSS
$custom: #6c2097;
$custom-light: #9b65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2097",
  "rgb": {
    "r": 108,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 278.319,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.18308,
    "h": 309.6
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#6C2097
secondary
#7BBF54
accent
#E8407D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2097

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

Preview Lab → · Contrast checker → · Palette generator →

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