#6A2A8B#6A2A8B

#6A2A8B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.158 H 311.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#6A2A8B
RGBrgb(106, 42, 139)
HSLhsl(280, 54%, 35%)
HSVhsv(280, 70%, 55%)
CMYKcmyk(23.7%, 69.8%, 0%, 45.5%)
CIE-LABlab(30.84, 44.90, -41.85)
CIE-LCHlch(30.84, 61.38, 317.01°)
OKLaboklab(42.35% 0.1056 -0.1181)
OKLCHoklch(42.35% 0.158 311.8)
XYZxyz(11.4312, 6.5845, 25.0898)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2A8B #4B8B2A
analogous
#3A2A8B #6A2A8B #8B2A7B
triadic
#6A2A8B #8B6A2A #2A8B6A
tetradic
#6A2A8B #8B3A2A #4B8B2A #2A7B8B
square
#6A2A8B #8B3A2A #4B8B2A #2A7B8B
split-complementary
#6A2A8B #7B8B2A #2A8B3A
monochromatic
#220E2D #461C5C #6A2A8B #8E38BA #A960CF

Accessibility & contrast

On white

9.06
#6A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6A2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2A8B
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2A8B#FFFFFF#000000##FFFFFF
##6A2A8B1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#663E57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a2a8b;
/* rgb */ color: rgb(106, 42, 139);
/* oklch */ color: oklch(42.4% 0.158 311.8);
Tailwind
colors: {
  custom: {
    50: '#9869ad',
    500: '#6a2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #6a2a8b;
$custom-light: #9869ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2a8b",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 279.588,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4235,
    "c": 0.15847,
    "h": 311.8
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

primary
#6A2A8B
secondary
#7AB55C
accent
#DD4B7D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6A2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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