#6C2E98#6C2E98

#6C2E98 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.168 H 307.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#6C2E98
RGBrgb(108, 46, 152)
HSLhsl(275, 54%, 39%)
HSVhsv(275, 70%, 60%)
CMYKcmyk(28.9%, 69.7%, 0%, 40.4%)
CIE-LABlab(32.72, 46.47, -46.79)
CIE-LCHlch(32.72, 65.95, 314.80°)
OKLaboklab(44.05% 0.1024 -0.1326)
OKLCHoklch(44.05% 0.168 307.7)
XYZxyz(12.8277, 7.4093, 30.4541)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2E98 #5A982E
analogous
#372E98 #6C2E98 #982E8F
triadic
#6C2E98 #986C2E #2E986C
tetradic
#6C2E98 #98372E #5A982E #2E8F98
square
#6C2E98 #98372E #5A982E #2E8F98
split-complementary
#6C2E98 #8F982E #2E9837
monochromatic
#29123A #4B2069 #6C2E98 #8D3EC5 #A96DD3

Accessibility & contrast

On white

8.46
#6C2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6C2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2E98
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2E98#FFFFFF#000000##FFFFFF
##6C2E981.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#144E96
Tritanopia (blue-blind)
#65455F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c2e98;
/* rgb */ color: rgb(108, 46, 152);
/* oklch */ color: oklch(44.0% 0.168 307.7);
Tailwind
colors: {
  custom: {
    50: '#9a6cb7',
    500: '#6c2e98',
    950: '#000000',
  },
}
SCSS
$custom: #6c2e98;
$custom-light: #9a6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2e98",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 275.094,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44047,
    "c": 0.16755,
    "h": 307.7
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#6C2E98
secondary
#8ABA68
accent
#DD4B88
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6C2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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