#6A2EB6#6A2EB6

#6A2EB6 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.199 H 298.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6A2EB6
RGBrgb(106, 46, 182)
HSLhsl(266, 60%, 45%)
HSVhsv(266, 75%, 71%)
CMYKcmyk(41.8%, 74.7%, 0%, 28.6%)
CIE-LABlab(34.79, 53.42, -61.47)
CIE-LCHlch(34.79, 81.44, 311.00°)
OKLaboklab(46.19% 0.0941 -0.1758)
OKLCHoklch(46.19% 0.199 298.2)
XYZxyz(15.3622, 8.3953, 45.0580)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EB6 #7AB62E
analogous
#2E36B6 #6A2EB6 #AE2EB6
triadic
#6A2EB6 #B66A2E #2EB66A
tetradic
#6A2EB6 #B62E36 #7AB62E #2EB6AE
square
#6A2EB6 #B62E36 #7AB62E #2EB6AE
split-complementary
#6A2EB6 #B6AE2E #36B62E
monochromatic
#311554 #4E2285 #6A2EB6 #894FD2 #AA80DF

Accessibility & contrast

On white

7.84
#6A2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6A2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EB6
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EB6#FFFFFF#000000##FFFFFF
##6A2EB61.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#575170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2eb6;
/* rgb */ color: rgb(106, 46, 182);
/* oklch */ color: oklch(46.2% 0.199 298.2);
Tailwind
colors: {
  custom: {
    50: '#9b6dcd',
    500: '#6a2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #6a2eb6;
$custom-light: #9b6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2eb6",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 266.471,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4619,
    "c": 0.19937,
    "h": 298.2
  },
  "luminance": 0.08396
}

Semantic roles & 50–950 ramp

primary
#6A2EB6
secondary
#A5C878
accent
#E3459D
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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