#6A2E8B#6A2E8B

#6A2E8B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.153 H 311.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#6A2E8B
RGBrgb(106, 46, 139)
HSLhsl(279, 50%, 36%)
HSVhsv(279, 67%, 55%)
CMYKcmyk(23.7%, 66.9%, 0%, 45.5%)
CIE-LABlab(31.54, 42.97, -40.73)
CIE-LCHlch(31.54, 59.21, 316.53°)
OKLaboklab(42.85% 0.1009 -0.1149)
OKLCHoklch(42.85% 0.153 311.3)
XYZxyz(11.5802, 6.8825, 25.1395)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2E8B #4F8B2E
analogous
#3C2E8B #6A2E8B #8B2E7E
triadic
#6A2E8B #8B6A2E #2E8B6A
tetradic
#6A2E8B #8B3C2E #4F8B2E #2E7E8B
square
#6A2E8B #8B3C2E #4F8B2E #2E7E8B
split-complementary
#6A2E8B #7E8B2E #2E8B3C
monochromatic
#24102F #471F5D #6A2E8B #8D3DB9 #A867CD

Accessibility & contrast

On white

8.84
#6A2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6A2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2E8B
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2E8B#FFFFFF#000000##FFFFFF
##6A2E8B1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#244B89
Tritanopia (blue-blind)
#664158
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a2e8b;
/* rgb */ color: rgb(106, 46, 139);
/* oklch */ color: oklch(42.9% 0.153 311.3);
Tailwind
colors: {
  custom: {
    50: '#986bad',
    500: '#6a2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #6a2e8b;
$custom-light: #986bad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2e8b",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 278.71,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.15287,
    "h": 311.3
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#6A2E8B
secondary
#7EB361
accent
#DA4E80
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6A2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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