#6A1A98#6A1A98

#6A1A98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.189 H 308.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#6A1A98
RGBrgb(106, 26, 152)
HSLhsl(278, 71%, 35%)
HSVhsv(278, 83%, 60%)
CMYKcmyk(30.3%, 82.9%, 0%, 40.4%)
CIE-LABlab(29.59, 54.19, -51.89)
CIE-LCHlch(29.59, 75.02, 316.24°)
OKLaboklab(41.77% 0.1185 -0.1475)
OKLCHoklch(41.77% 0.189 308.8)
XYZxyz(11.9796, 6.0702, 30.2403)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1A98 #48981A
analogous
#2B1A98 #6A1A98 #981A87
triadic
#6A1A98 #986A1A #1A986A
tetradic
#6A1A98 #982B1A #48981A #1A8798
square
#6A1A98 #982B1A #48981A #1A8798
split-complementary
#6A1A98 #87981A #1A982B
monochromatic
#21082F #461164 #6A1A98 #8E23CC #AA4CE0

Accessibility & contrast

On white

9.49
#6A1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6A1A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1A98
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1A98#FFFFFF#000000##FFFFFF
##6A1A981.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#633C5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1a98;
/* rgb */ color: rgb(106, 26, 152);
/* oklch */ color: oklch(41.8% 0.189 308.8);
Tailwind
colors: {
  custom: {
    50: '#9a62b7',
    500: '#6a1a98',
    950: '#000000',
  },
}
SCSS
$custom: #6a1a98;
$custom-light: #9a62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1a98",
  "rgb": {
    "r": 106,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 278.095,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41774,
    "c": 0.18918,
    "h": 308.8
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#6A1A98
secondary
#77C24B
accent
#EE3A7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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