#6B2097#6B2097

#6B2097 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.183 H 309.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#6B2097
RGBrgb(107, 32, 151)
HSLhsl(278, 65%, 36%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(29.1%, 78.8%, 0%, 40.8%)
CIE-LABlab(30.38, 52.04, -49.97)
CIE-LCHlch(30.38, 72.15, 316.16°)
OKLaboklab(42.34% 0.1153 -0.1419)
OKLCHoklch(42.34% 0.183 309.1)
XYZxyz(12.1647, 6.3934, 29.8654)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2097 #4C9720
analogous
#2F2097 #6B2097 #972087
triadic
#6B2097 #976B20 #20976B
tetradic
#6B2097 #972F20 #4C9720 #208797
square
#6B2097 #972F20 #4C9720 #208797
split-complementary
#6B2097 #879720 #20972F
monochromatic
#230B32 #471564 #6B2097 #8F2BC9 #AA56DB

Accessibility & contrast

On white

9.22
#6B2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6B2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2097
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2097#FFFFFF#000000##FFFFFF
##6B20971.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2097;
/* rgb */ color: rgb(107, 32, 151);
/* oklch */ color: oklch(42.3% 0.183 309.1);
Tailwind
colors: {
  custom: {
    50: '#9a65b6',
    500: '#6b2097',
    950: '#000000',
  },
}
SCSS
$custom: #6b2097;
$custom-light: #9a65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2097",
  "rgb": {
    "r": 107,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 277.815,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42336,
    "c": 0.1828,
    "h": 309.1
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

primary
#6B2097
secondary
#7BBF54
accent
#E8407E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B2097

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

Preview Lab → · Contrast checker → · Palette generator →

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