#6B2198#6B2198

#6B2198 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.183 H 308.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#6B2198
RGBrgb(107, 33, 152)
HSLhsl(277, 64%, 36%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(29.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(30.59, 51.89, -50.25)
CIE-LCHlch(30.59, 72.23, 315.92°)
OKLaboklab(42.51% 0.1142 -0.1427)
OKLCHoklch(42.51% 0.183 308.7)
XYZxyz(12.2736, 6.4807, 30.3040)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2198 #4E9821
analogous
#302198 #6B2198 #98218A
triadic
#6B2198 #986B21 #21986B
tetradic
#6B2198 #983021 #4E9821 #218A98
square
#6B2198 #983021 #4E9821 #218A98
split-complementary
#6B2198 #8A9821 #219830
monochromatic
#240B33 #481666 #6B2198 #8E2CCA #AA59DB

Accessibility & contrast

On white

9.15
#6B2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2198
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2198#FFFFFF#000000##FFFFFF
##6B21981.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2198;
/* rgb */ color: rgb(107, 33, 152);
/* oklch */ color: oklch(42.5% 0.183 308.7);
Tailwind
colors: {
  custom: {
    50: '#9a65b7',
    500: '#6b2198',
    950: '#000000',
  },
}
SCSS
$custom: #6b2198;
$custom-light: #9a65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2198",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 277.311,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.18273,
    "h": 308.7
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#6B2198
secondary
#7EBF56
accent
#E74080
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B2198

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

Preview Lab → · Contrast checker → · Palette generator →

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