#6A2BA2#6A2BA2

#6A2BA2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.181 H 303.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#6A2BA2
RGBrgb(106, 43, 162)
HSLhsl(272, 58%, 40%)
HSVhsv(272, 73%, 64%)
CMYKcmyk(34.6%, 73.5%, 0%, 36.5%)
CIE-LABlab(32.70, 49.84, -52.91)
CIE-LCHlch(32.70, 72.69, 313.29°)
OKLaboklab(44.21% 0.1012 -0.1506)
OKLCHoklch(44.21% 0.181 303.9)
XYZxyz(13.3278, 7.4006, 34.9017)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2BA2 #63A22B
analogous
#2F2BA2 #6A2BA2 #A22B9E
triadic
#6A2BA2 #A26A2B #2BA26A
tetradic
#6A2BA2 #A22F2B #63A22B #2B9EA2
square
#6A2BA2 #A22F2B #63A22B #2B9EA2
split-complementary
#6A2BA2 #9EA22B #2BA22F
monochromatic
#2B1141 #4A1E72 #6A2BA2 #893ECC #A76FD9

Accessibility & contrast

On white

8.47
#6A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6A2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2BA2
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2BA2#FFFFFF#000000##FFFFFF
##6A2BA21.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#5F4864
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a2ba2;
/* rgb */ color: rgb(106, 43, 162);
/* oklch */ color: oklch(44.2% 0.181 303.9);
Tailwind
colors: {
  custom: {
    50: '#9a6abe',
    500: '#6a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ba2;
$custom-light: #9a6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ba2",
  "rgb": {
    "r": 106,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 271.765,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44211,
    "c": 0.18146,
    "h": 303.9
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#6A2BA2
secondary
#92C069
accent
#E1478F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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