#6C2298#6C2298

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

Color values

HEX#6C2298
RGBrgb(108, 34, 152)
HSLhsl(278, 63%, 36%)
HSVhsv(278, 78%, 60%)
CMYKcmyk(28.9%, 77.6%, 0%, 40.4%)
CIE-LABlab(30.88, 51.69, -49.78)
CIE-LCHlch(30.88, 71.76, 316.08°)
OKLaboklab(42.74% 0.1147 -0.1413)
OKLCHoklch(42.74% 0.182 309.1)
XYZxyz(12.4227, 6.5994, 30.3191)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2298 #4E9822
analogous
#312298 #6C2298 #982289
triadic
#6C2298 #986C22 #22986C
tetradic
#6C2298 #983122 #4E9822 #228998
square
#6C2298 #983122 #4E9822 #228998
split-complementary
#6C2298 #899822 #229831
monochromatic
#250C34 #481766 #6C2298 #902DCA #AA5ADA

Accessibility & contrast

On white

9.05
#6C2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6C2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2298
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2298#FFFFFF#000000##FFFFFF
##6C22981.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#653F5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c2298;
/* rgb */ color: rgb(108, 34, 152);
/* oklch */ color: oklch(42.7% 0.182 309.1);
Tailwind
colors: {
  custom: {
    50: '#9b66b7',
    500: '#6c2298',
    950: '#000000',
  },
}
SCSS
$custom: #6c2298;
$custom-light: #9b66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2298",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 277.627,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42738,
    "c": 0.18195,
    "h": 309.1
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#6C2298
secondary
#7EBE57
accent
#E6417F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C2298

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

Preview Lab → · Contrast checker → · Palette generator →

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