#6B1A98#6B1A98

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

Color values

HEX#6B1A98
RGBrgb(107, 26, 152)
HSLhsl(279, 71%, 35%)
HSVhsv(279, 83%, 60%)
CMYKcmyk(29.6%, 82.9%, 0%, 40.4%)
CIE-LABlab(29.74, 54.36, -51.63)
CIE-LCHlch(29.74, 74.97, 316.47°)
OKLaboklab(41.91% 0.1199 -0.1467)
OKLCHoklch(41.91% 0.189 309.3)
XYZxyz(12.0991, 6.1318, 30.2459)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1A98 #47981A
analogous
#2C1A98 #6B1A98 #981A86
triadic
#6B1A98 #986B1A #1A986B
tetradic
#6B1A98 #982C1A #47981A #1A8698
square
#6B1A98 #982C1A #47981A #1A8698
split-complementary
#6B1A98 #86981A #1A982C
monochromatic
#21082F #461164 #6B1A98 #9023CC #AB4CE0

Accessibility & contrast

On white

9.43
#6B1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6B1A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1A98
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1A98#FFFFFF#000000##FFFFFF
##6B1A981.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1a98;
/* rgb */ color: rgb(107, 26, 152);
/* oklch */ color: oklch(41.9% 0.189 309.3);
Tailwind
colors: {
  custom: {
    50: '#9a62b7',
    500: '#6b1a98',
    950: '#000000',
  },
}
SCSS
$custom: #6b1a98;
$custom-light: #9a62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1a98",
  "rgb": {
    "r": 107,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 278.571,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41913,
    "c": 0.18945,
    "h": 309.3
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#6B1A98
secondary
#76C24B
accent
#EE3A7A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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