#6B2496#6B2496

#6B2496 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.177 H 309.0°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#6B2496
RGBrgb(107, 36, 150)
HSLhsl(277, 61%, 36%)
HSVhsv(277, 76%, 59%)
CMYKcmyk(28.7%, 76%, 0%, 41.2%)
CIE-LABlab(30.85, 50.25, -48.60)
CIE-LCHlch(30.85, 69.91, 315.96°)
OKLaboklab(42.64% 0.1118 -0.1379)
OKLCHoklch(42.64% 0.178 309)
XYZxyz(12.1982, 6.5898, 29.4776)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2496 #4F9624
analogous
#322496 #6B2496 #962488
triadic
#6B2496 #966B24 #24966B
tetradic
#6B2496 #963224 #4F9624 #248896
square
#6B2496 #963224 #4F9624 #248896
split-complementary
#6B2496 #889624 #249632
monochromatic
#250C33 #481865 #6B2496 #8E30C7 #A95CD8

Accessibility & contrast

On white

9.06
#6B2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2496
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2496#FFFFFF#000000##FFFFFF
##6B24961.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2496;
/* rgb */ color: rgb(107, 36, 150);
/* oklch */ color: oklch(42.6% 0.177 309.0);
Tailwind
colors: {
  custom: {
    50: '#9a66b6',
    500: '#6b2496',
    950: '#000000',
  },
}
SCSS
$custom: #6b2496;
$custom-light: #9a66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2496",
  "rgb": {
    "r": 107,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 277.368,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42643,
    "c": 0.1775,
    "h": 309
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#6B2496
secondary
#7FBD59
accent
#E44380
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B2496

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

Preview Lab → · Contrast checker → · Palette generator →

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