#6A2BAB#6A2BAB

#6A2BAB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.191 H 301.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#6A2BAB
RGBrgb(106, 43, 171)
HSLhsl(270, 60%, 42%)
HSVhsv(270, 75%, 67%)
CMYKcmyk(38%, 74.9%, 0%, 32.9%)
CIE-LABlab(33.42, 52.03, -57.15)
CIE-LCHlch(33.42, 77.29, 312.31°)
OKLaboklab(44.94% 0.0993 -0.1631)
OKLCHoklch(44.94% 0.191 301.3)
XYZxyz(14.1566, 7.7321, 39.2668)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2BAB #6CAB2B
analogous
#2B2CAB #6A2BAB #AA2BAB
triadic
#6A2BAB #AB6A2B #2BAB6A
tetradic
#6A2BAB #AB2B2C #6CAB2B #2BABAA
square
#6A2BAB #AB2B2C #6CAB2B #2BABAA
split-complementary
#6A2BAB #ABAA2B #2CAB2B
monochromatic
#2D1249 #4C1F7A #6A2BAB #8943D0 #A774DC

Accessibility & contrast

On white

8.25
#6A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6A2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2BAB
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2BAB#FFFFFF#000000##FFFFFF
##6A2BAB1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#5C4B69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2bab;
/* rgb */ color: rgb(106, 43, 171);
/* oklch */ color: oklch(44.9% 0.191 301.3);
Tailwind
colors: {
  custom: {
    50: '#9b6bc5',
    500: '#6a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #6a2bab;
$custom-light: #9b6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2bab",
  "rgb": {
    "r": 106,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 269.531,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44941,
    "c": 0.19096,
    "h": 301.3
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#6A2BAB
secondary
#9AC46E
accent
#E34595
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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