#6A2AB1#6A2AB1

#6A2AB1 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.198 H 299.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#6A2AB1
RGBrgb(106, 42, 177)
HSLhsl(268, 62%, 43%)
HSVhsv(268, 76%, 69%)
CMYKcmyk(40.1%, 76.3%, 0%, 30.6%)
CIE-LABlab(33.76, 53.93, -60.18)
CIE-LCHlch(33.76, 80.81, 311.87°)
OKLaboklab(45.34% 0.0988 -0.172)
OKLCHoklch(45.34% 0.198 299.9)
XYZxyz(14.7056, 7.8943, 42.3354)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AB1 #71B12A
analogous
#2A2EB1 #6A2AB1 #AD2AB1
triadic
#6A2AB1 #B16A2A #2AB16A
tetradic
#6A2AB1 #B12A2E #71B12A #2AB1AD
square
#6A2AB1 #B12A2E #71B12A #2AB1AD
split-complementary
#6A2AB1 #B1AD2A #2EB12A
monochromatic
#2F134E #4C1E80 #6A2AB1 #8845D3 #A877DF

Accessibility & contrast

On white

8.14
#6A2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2AB1
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AB1#FFFFFF#000000##FFFFFF
##6A2AB11.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#594D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2ab1;
/* rgb */ color: rgb(106, 42, 177);
/* oklch */ color: oklch(45.3% 0.198 299.9);
Tailwind
colors: {
  custom: {
    50: '#9b6bc9',
    500: '#6a2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ab1;
$custom-light: #9b6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ab1",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 268.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45336,
    "c": 0.19834,
    "h": 299.9
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#6A2AB1
secondary
#9EC670
accent
#E54398
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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