#6B2396#6B2396

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

Color values

HEX#6B2396
RGBrgb(107, 35, 150)
HSLhsl(278, 62%, 36%)
HSVhsv(278, 77%, 59%)
CMYKcmyk(28.7%, 76.7%, 0%, 41.2%)
CIE-LABlab(30.71, 50.65, -48.83)
CIE-LCHlch(30.71, 70.36, 316.05°)
OKLaboklab(42.54% 0.1128 -0.1385)
OKLCHoklch(42.54% 0.179 309.1)
XYZxyz(12.1683, 6.5301, 29.4677)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2396 #4E9623
analogous
#322396 #6B2396 #962388
triadic
#6B2396 #966B23 #23966B
tetradic
#6B2396 #963223 #4E9623 #238896
square
#6B2396 #963223 #4E9623 #238896
split-complementary
#6B2396 #889623 #239632
monochromatic
#240C33 #481764 #6B2396 #8E2FC8 #AA5BD9

Accessibility & contrast

On white

9.11
#6B2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6B2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2396
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2396#FFFFFF#000000##FFFFFF
##6B23961.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#643F5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b2396;
/* rgb */ color: rgb(107, 35, 150);
/* oklch */ color: oklch(42.5% 0.179 309.1);
Tailwind
colors: {
  custom: {
    50: '#9a66b6',
    500: '#6b2396',
    950: '#000000',
  },
}
SCSS
$custom: #6b2396;
$custom-light: #9a66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2396",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 277.565,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.17861,
    "h": 309.1
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#6B2396
secondary
#7EBD58
accent
#E5437F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B2396

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

Preview Lab → · Contrast checker → · Palette generator →

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