#6A2096#6A2096

#6A2096 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.182 H 308.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#6A2096
RGBrgb(106, 32, 150)
HSLhsl(278, 65%, 36%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(29.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(30.16, 51.64, -49.74)
CIE-LCHlch(30.16, 71.70, 316.07°)
OKLaboklab(42.12% 0.1141 -0.1412)
OKLCHoklch(42.12% 0.182 308.9)
XYZxyz(11.9643, 6.2994, 29.4339)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2096 #4C9620
analogous
#2F2096 #6A2096 #962087
triadic
#6A2096 #966A20 #20966A
tetradic
#6A2096 #962F20 #4C9620 #208796
square
#6A2096 #962F20 #4C9620 #208796
split-complementary
#6A2096 #879620 #20962F
monochromatic
#230A31 #461564 #6A2096 #8E2BC8 #A956DB

Accessibility & contrast

On white

9.29
#6A2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6A2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2096
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2096#FFFFFF#000000##FFFFFF
##6A20961.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#633D5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a2096;
/* rgb */ color: rgb(106, 32, 150);
/* oklch */ color: oklch(42.1% 0.182 308.9);
Tailwind
colors: {
  custom: {
    50: '#9964b6',
    500: '#6a2096',
    950: '#000000',
  },
}
SCSS
$custom: #6a2096;
$custom-light: #9964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2096",
  "rgb": {
    "r": 106,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 277.627,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.18155,
    "h": 308.9
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#6A2096
secondary
#7BBE53
accent
#E8407F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2096

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

Preview Lab → · Contrast checker → · Palette generator →

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