#6B2197#6B2197

#6B2197 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.182 H 309.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#6B2197
RGBrgb(107, 33, 151)
HSLhsl(278, 64%, 36%)
HSVhsv(278, 78%, 59%)
CMYKcmyk(29.1%, 78.1%, 0%, 40.8%)
CIE-LABlab(30.52, 51.66, -49.76)
CIE-LCHlch(30.52, 71.73, 316.08°)
OKLaboklab(42.43% 0.1144 -0.1413)
OKLCHoklch(42.43% 0.182 309)
XYZxyz(12.1920, 6.4481, 29.8745)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2197 #4D9721
analogous
#302197 #6B2197 #972188
triadic
#6B2197 #976B21 #21976B
tetradic
#6B2197 #973021 #4D9721 #218897
square
#6B2197 #973021 #4D9721 #218897
split-complementary
#6B2197 #889721 #219730
monochromatic
#240B33 #471665 #6B2197 #8F2CC9 #AA58DA

Accessibility & contrast

On white

9.17
#6B2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6B2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2197
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2197#FFFFFF#000000##FFFFFF
##6B21971.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#643E5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b2197;
/* rgb */ color: rgb(107, 33, 151);
/* oklch */ color: oklch(42.4% 0.182 309.0);
Tailwind
colors: {
  custom: {
    50: '#9a65b6',
    500: '#6b2197',
    950: '#000000',
  },
}
SCSS
$custom: #6b2197;
$custom-light: #9a65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2197",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 277.627,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.18176,
    "h": 309
  },
  "luminance": 0.06448
}

Semantic roles & 50–950 ramp

primary
#6B2197
secondary
#7DBE55
accent
#E7417F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B2197

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

Preview Lab → · Contrast checker → · Palette generator →

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