#6B2A8D#6B2A8D

#6B2A8D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.161 H 311.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#6B2A8D
RGBrgb(107, 42, 141)
HSLhsl(279, 54%, 36%)
HSVhsv(279, 70%, 55%)
CMYKcmyk(24.1%, 70.2%, 0%, 44.7%)
CIE-LABlab(31.13, 45.58, -42.62)
CIE-LCHlch(31.13, 62.41, 316.92°)
OKLaboklab(42.63% 0.1068 -0.1203)
OKLCHoklch(42.63% 0.161 311.6)
XYZxyz(11.6982, 6.7051, 25.8721)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2A8D #4C8D2A
analogous
#392A8D #6B2A8D #8D2A7D
triadic
#6B2A8D #8D6B2A #2A8D6B
tetradic
#6B2A8D #8D392A #4C8D2A #2A7D8D
square
#6B2A8D #8D392A #4C8D2A #2A7D8D
split-complementary
#6B2A8D #7D8D2A #2A8D39
monochromatic
#230E2F #471C5E #6B2A8D #8F38BC #AA61D0

Accessibility & contrast

On white

8.97
#6B2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6B2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2A8D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2A8D#FFFFFF#000000##FFFFFF
##6B2A8D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#1E4A8B
Tritanopia (blue-blind)
#673F58
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b2a8d;
/* rgb */ color: rgb(107, 42, 141);
/* oklch */ color: oklch(42.6% 0.161 311.6);
Tailwind
colors: {
  custom: {
    50: '#9969af',
    500: '#6b2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #6b2a8d;
$custom-light: #9969af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2a8d",
  "rgb": {
    "r": 107,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 279.394,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42628,
    "c": 0.16091,
    "h": 311.6
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#6B2A8D
secondary
#7BB65D
accent
#DD4A7D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6B2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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