#6A1C98#6A1C98

#6A1C98 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.187 H 308.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#6A1C98
RGBrgb(106, 28, 152)
HSLhsl(278, 69%, 35%)
HSVhsv(278, 82%, 60%)
CMYKcmyk(30.3%, 81.6%, 0%, 40.4%)
CIE-LABlab(29.82, 53.52, -51.51)
CIE-LCHlch(29.82, 74.29, 316.09°)
OKLaboklab(41.93% 0.1169 -0.1464)
OKLCHoklch(41.93% 0.187 308.6)
XYZxyz(12.0254, 6.1619, 30.2555)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1C98 #4A981C
analogous
#2C1C98 #6A1C98 #981C88
triadic
#6A1C98 #986A1C #1C986A
tetradic
#6A1C98 #982C1C #4A981C #1C8898
square
#6A1C98 #982C1C #4A981C #1C8898
split-complementary
#6A1C98 #88981C #1C982C
monochromatic
#220931 #461264 #6A1C98 #8E26CC #AA50DF

Accessibility & contrast

On white

9.41
#6A1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1C98
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1C98#FFFFFF#000000##FFFFFF
##6A1C981.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1c98;
/* rgb */ color: rgb(106, 28, 152);
/* oklch */ color: oklch(41.9% 0.187 308.6);
Tailwind
colors: {
  custom: {
    50: '#9a63b7',
    500: '#6a1c98',
    950: '#000000',
  },
}
SCSS
$custom: #6a1c98;
$custom-light: #9a63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1c98",
  "rgb": {
    "r": 106,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 277.742,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41933,
    "c": 0.18738,
    "h": 308.6
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#6A1C98
secondary
#79C14E
accent
#EC3C7D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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