#6D2198#6D2198

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

Color values

HEX#6D2198
RGBrgb(109, 33, 152)
HSLhsl(278, 64%, 36%)
HSVhsv(278, 78%, 60%)
CMYKcmyk(28.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(30.89, 52.26, -49.75)
CIE-LCHlch(30.89, 72.15, 316.41°)
OKLaboklab(42.78% 0.117 -0.1411)
OKLCHoklch(42.78% 0.183 309.6)
XYZxyz(12.5169, 6.6062, 30.3154)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2198 #4C9821
analogous
#322198 #6D2198 #982188
triadic
#6D2198 #986D21 #21986D
tetradic
#6D2198 #983221 #4C9821 #218898
square
#6D2198 #983221 #4C9821 #218898
split-complementary
#6D2198 #889821 #219832
monochromatic
#250B33 #491666 #6D2198 #912CCA #AC59DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6D2198#FFFFFF#000000##FFFFFF
##6D21981.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)
#673E5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6d2198;
/* rgb */ color: rgb(109, 33, 152);
/* oklch */ color: oklch(42.8% 0.183 309.6);
Tailwind
colors: {
  custom: {
    50: '#9b65b7',
    500: '#6d2198',
    950: '#000000',
  },
}
SCSS
$custom: #6d2198;
$custom-light: #9b65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2198",
  "rgb": {
    "r": 109,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 278.319,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4278,
    "c": 0.1833,
    "h": 309.6
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#6D2198
secondary
#7CBF56
accent
#E7407D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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