#6A2BA4#6A2BA4

#6A2BA4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.184 H 303.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6A2BA4
RGBrgb(106, 43, 164)
HSLhsl(271, 58%, 41%)
HSVhsv(271, 74%, 64%)
CMYKcmyk(35.4%, 73.8%, 0%, 35.7%)
CIE-LABlab(32.86, 50.32, -53.86)
CIE-LCHlch(32.86, 73.71, 313.06°)
OKLaboklab(44.37% 0.1008 -0.1534)
OKLCHoklch(44.37% 0.184 303.3)
XYZxyz(13.5070, 7.4723, 35.8455)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2BA4 #65A42B
analogous
#2E2BA4 #6A2BA4 #A42BA1
triadic
#6A2BA4 #A46A2B #2BA46A
tetradic
#6A2BA4 #A42E2B #65A42B #2BA1A4
square
#6A2BA4 #A42E2B #65A42B #2BA1A4
split-complementary
#6A2BA4 #A1A42B #2BA42E
monochromatic
#2B1243 #4B1E74 #6A2BA4 #893FCD #A770D9

Accessibility & contrast

On white

8.42
#6A2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6A2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2BA4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2BA4#FFFFFF#000000##FFFFFF
##6A2BA41.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#5E4965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a2ba4;
/* rgb */ color: rgb(106, 43, 164);
/* oklch */ color: oklch(44.4% 0.184 303.3);
Tailwind
colors: {
  custom: {
    50: '#9a6ac0',
    500: '#6a2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ba4;
$custom-light: #9a6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ba4",
  "rgb": {
    "r": 106,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 271.24,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44371,
    "c": 0.18358,
    "h": 303.3
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#6A2BA4
secondary
#94C16A
accent
#E24691
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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