#6A2EAA#6A2EAA

#6A2EAA is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.186 H 301.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6A2EAA
RGBrgb(106, 46, 170)
HSLhsl(269, 57%, 42%)
HSVhsv(269, 73%, 67%)
CMYKcmyk(37.6%, 72.9%, 0%, 33.3%)
CIE-LABlab(33.82, 50.43, -55.91)
CIE-LCHlch(33.82, 75.29, 312.05°)
OKLaboklab(45.2% 0.0967 -0.1594)
OKLCHoklch(45.2% 0.186 301.2)
XYZxyz(14.1748, 7.9204, 38.8044)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EAA #6EAA2E
analogous
#2E30AA #6A2EAA #A82EAA
triadic
#6A2EAA #AA6A2E #2EAA6A
tetradic
#6A2EAA #AA2E30 #6EAA2E #2EAAA8
square
#6A2EAA #AA2E30 #6EAA2E #2EAAA8
split-complementary
#6A2EAA #AAA82E #30AA2E
monochromatic
#2E144A #4C217A #6A2EAA #8848CD #A878DA

Accessibility & contrast

On white

8.13
#6A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6A2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EAA
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EAA#FFFFFF#000000##FFFFFF
##6A2EAA1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004FA7
Tritanopia (blue-blind)
#5C4D69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a2eaa;
/* rgb */ color: rgb(106, 46, 170);
/* oklch */ color: oklch(45.2% 0.186 301.2);
Tailwind
colors: {
  custom: {
    50: '#9a6cc4',
    500: '#6a2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #6a2eaa;
$custom-light: #9a6cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2eaa",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 269.032,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45197,
    "c": 0.18648,
    "h": 301.2
  },
  "luminance": 0.0792
}

Semantic roles & 50–950 ramp

primary
#6A2EAA
secondary
#9BC371
accent
#E14796
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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