#6A2DAB#6A2DAB

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

Color values

HEX#6A2DAB
RGBrgb(106, 45, 171)
HSLhsl(269, 58%, 42%)
HSVhsv(269, 74%, 67%)
CMYKcmyk(38%, 73.7%, 0%, 32.9%)
CIE-LABlab(33.73, 51.13, -56.64)
CIE-LCHlch(33.73, 76.31, 312.07°)
OKLaboklab(45.16% 0.0975 -0.1616)
OKLCHoklch(45.16% 0.189 301.1)
XYZxyz(14.2311, 7.8811, 39.2916)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DAB #6EAB2D
analogous
#2D2FAB #6A2DAB #A92DAB
triadic
#6A2DAB #AB6A2D #2DAB6A
tetradic
#6A2DAB #AB2D2F #6EAB2D #2DABA9
square
#6A2DAB #AB2D2F #6EAB2D #2DABA9
split-complementary
#6A2DAB #ABA92D #2FAB2D
monochromatic
#2E144A #4C207B #6A2DAB #8847CE #A877DB

Accessibility & contrast

On white

8.15
#6A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2DAB
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DAB#FFFFFF#000000##FFFFFF
##6A2DAB1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#5C4C69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2dab;
/* rgb */ color: rgb(106, 45, 171);
/* oklch */ color: oklch(45.2% 0.189 301.1);
Tailwind
colors: {
  custom: {
    50: '#9a6cc5',
    500: '#6a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #6a2dab;
$custom-light: #9a6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2dab",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 269.048,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45163,
    "c": 0.18871,
    "h": 301.1
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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