#6C2297#6C2297

#6C2297 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.181 H 309.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6C2297
RGBrgb(108, 34, 151)
HSLhsl(278, 63%, 36%)
HSVhsv(278, 77%, 59%)
CMYKcmyk(28.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(30.80, 51.47, -49.29)
CIE-LCHlch(30.80, 71.26, 316.24°)
OKLaboklab(42.66% 0.1149 -0.1398)
OKLCHoklch(42.66% 0.181 309.4)
XYZxyz(12.3412, 6.5668, 29.8896)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2297 #4D9722
analogous
#322297 #6C2297 #972288
triadic
#6C2297 #976C22 #22976C
tetradic
#6C2297 #973222 #4D9722 #228897
square
#6C2297 #973222 #4D9722 #228897
split-complementary
#6C2297 #889722 #229732
monochromatic
#250C33 #481765 #6C2297 #902DC9 #AB5ADA

Accessibility & contrast

On white

9.08
#6C2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6C2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2297
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2297#FFFFFF#000000##FFFFFF
##6C22971.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c2297;
/* rgb */ color: rgb(108, 34, 151);
/* oklch */ color: oklch(42.7% 0.181 309.4);
Tailwind
colors: {
  custom: {
    50: '#9b66b6',
    500: '#6c2297',
    950: '#000000',
  },
}
SCSS
$custom: #6c2297;
$custom-light: #9b66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2297",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 277.949,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4266,
    "c": 0.18098,
    "h": 309.4
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#6C2297
secondary
#7DBE57
accent
#E6427E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2297

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

Preview Lab → · Contrast checker → · Palette generator →

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