#6C2098#6C2098

#6C2098 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.184 H 309.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#6C2098
RGBrgb(108, 32, 152)
HSLhsl(278, 65%, 36%)
HSVhsv(278, 79%, 60%)
CMYKcmyk(28.9%, 78.9%, 0%, 40.4%)
CIE-LABlab(30.61, 52.45, -50.21)
CIE-LCHlch(30.61, 72.61, 316.25°)
OKLaboklab(42.55% 0.1164 -0.1425)
OKLCHoklch(42.55% 0.184 309.2)
XYZxyz(12.3672, 6.4884, 30.3006)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2098 #4C9820
analogous
#302098 #6C2098 #982088
triadic
#6C2098 #986C20 #20986C
tetradic
#6C2098 #983020 #4C9820 #208898
square
#6C2098 #983020 #4C9820 #208898
split-complementary
#6C2098 #889820 #209830
monochromatic
#240B33 #481565 #6C2098 #902BCB #AB57DC

Accessibility & contrast

On white

9.14
#6C2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6C2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2098
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2098#FFFFFF#000000##FFFFFF
##6C20981.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#653E5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6c2098;
/* rgb */ color: rgb(108, 32, 152);
/* oklch */ color: oklch(42.6% 0.184 309.2);
Tailwind
colors: {
  custom: {
    50: '#9b65b7',
    500: '#6c2098',
    950: '#000000',
  },
}
SCSS
$custom: #6c2098;
$custom-light: #9b65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2098",
  "rgb": {
    "r": 108,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 278,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42552,
    "c": 0.18405,
    "h": 309.2
  },
  "luminance": 0.06488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C2098

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

Preview Lab → · Contrast checker → · Palette generator →

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