#6C2397#6C2397

#6C2397 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.180 H 309.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#6C2397
RGBrgb(108, 35, 151)
HSLhsl(278, 62%, 36%)
HSVhsv(278, 77%, 59%)
CMYKcmyk(28.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(30.94, 51.07, -49.07)
CIE-LCHlch(30.94, 70.82, 316.14°)
OKLaboklab(42.76% 0.114 -0.1392)
OKLCHoklch(42.76% 0.18 309.3)
XYZxyz(12.3702, 6.6248, 29.8992)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2397 #4E9723
analogous
#322397 #6C2397 #972388
triadic
#6C2397 #976C23 #23976C
tetradic
#6C2397 #973223 #4E9723 #238897
square
#6C2397 #973223 #4E9723 #238897
split-complementary
#6C2397 #889723 #239732
monochromatic
#250C34 #481765 #6C2397 #902FC9 #AA5BD9

Accessibility & contrast

On white

9.03
#6C2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6C2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2397
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2397#FFFFFF#000000##FFFFFF
##6C23971.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#663F5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c2397;
/* rgb */ color: rgb(108, 35, 151);
/* oklch */ color: oklch(42.8% 0.180 309.3);
Tailwind
colors: {
  custom: {
    50: '#9b66b6',
    500: '#6c2397',
    950: '#000000',
  },
}
SCSS
$custom: #6c2397;
$custom-light: #9b66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2397",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 277.759,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42756,
    "c": 0.1799,
    "h": 309.3
  },
  "luminance": 0.06625
}

Semantic roles & 50–950 ramp

primary
#6C2397
secondary
#7EBE58
accent
#E5427F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2397

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

Preview Lab → · Contrast checker → · Palette generator →

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