#6A2AB2#6A2AB2

#6A2AB2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.4% C 0.199 H 299.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6A2AB2
RGBrgb(106, 42, 178)
HSLhsl(268, 62%, 43%)
HSVhsv(268, 76%, 70%)
CMYKcmyk(40.4%, 76.4%, 0%, 30.2%)
CIE-LABlab(33.85, 54.18, -60.64)
CIE-LCHlch(33.85, 81.31, 311.78°)
OKLaboklab(45.42% 0.0986 -0.1733)
OKLCHoklch(45.42% 0.199 299.6)
XYZxyz(14.8057, 7.9343, 42.8623)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AB2 #72B22A
analogous
#2A2EB2 #6A2AB2 #AE2AB2
triadic
#6A2AB2 #B26A2A #2AB26A
tetradic
#6A2AB2 #B22A2E #72B22A #2AB2AE
square
#6A2AB2 #B22A2E #72B22A #2AB2AE
split-complementary
#6A2AB2 #B2AE2A #2EB22A
monochromatic
#2F134F #4D1E80 #6A2AB2 #8846D3 #A877DF

Accessibility & contrast

On white

8.12
#6A2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6A2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2AB2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AB2#FFFFFF#000000##FFFFFF
##6A2AB21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#594E6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a2ab2;
/* rgb */ color: rgb(106, 42, 178);
/* oklch */ color: oklch(45.4% 0.199 299.6);
Tailwind
colors: {
  custom: {
    50: '#9b6bca',
    500: '#6a2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ab2;
$custom-light: #9b6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ab2",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 268.235,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45421,
    "c": 0.19938,
    "h": 299.6
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#6A2AB2
secondary
#9EC771
accent
#E54399
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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