#6B2497#6B2497

#6B2497 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.178 H 308.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#6B2497
RGBrgb(107, 36, 151)
HSLhsl(277, 61%, 37%)
HSVhsv(277, 76%, 59%)
CMYKcmyk(29.1%, 76.2%, 0%, 40.8%)
CIE-LABlab(30.93, 50.47, -49.09)
CIE-LCHlch(30.93, 70.41, 315.80°)
OKLaboklab(42.72% 0.1116 -0.1393)
OKLCHoklch(42.72% 0.179 308.7)
XYZxyz(12.2790, 6.6221, 29.9035)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2497 #509724
analogous
#312497 #6B2497 #97248A
triadic
#6B2497 #976B24 #24976B
tetradic
#6B2497 #973124 #509724 #248A97
square
#6B2497 #973124 #509724 #248A97
split-complementary
#6B2497 #8A9724 #249731
monochromatic
#250C34 #481866 #6B2497 #8E30C8 #A95DD8

Accessibility & contrast

On white

9.03
#6B2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2497
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2497#FFFFFF#000000##FFFFFF
##6B24971.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#64405C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b2497;
/* rgb */ color: rgb(107, 36, 151);
/* oklch */ color: oklch(42.7% 0.178 308.7);
Tailwind
colors: {
  custom: {
    50: '#9a66b6',
    500: '#6b2497',
    950: '#000000',
  },
}
SCSS
$custom: #6b2497;
$custom-light: #9a66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2497",
  "rgb": {
    "r": 107,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 277.043,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42721,
    "c": 0.1785,
    "h": 308.7
  },
  "luminance": 0.06622
}

Semantic roles & 50–950 ramp

primary
#6B2497
secondary
#80BD5A
accent
#E54381
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B2497

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

Preview Lab → · Contrast checker → · Palette generator →

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