#6A1E97#6A1E97

#6A1E97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.185 H 308.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#6A1E97
RGBrgb(106, 30, 151)
HSLhsl(278, 67%, 35%)
HSVhsv(278, 80%, 59%)
CMYKcmyk(29.8%, 80.1%, 0%, 40.8%)
CIE-LABlab(29.98, 52.60, -50.64)
CIE-LCHlch(29.98, 73.01, 316.09°)
OKLaboklab(42.02% 0.1156 -0.1439)
OKLCHoklch(42.02% 0.185 308.8)
XYZxyz(11.9929, 6.2273, 29.8424)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1E97 #4B971E
analogous
#2D1E97 #6A1E97 #971E87
triadic
#6A1E97 #976A1E #1E976A
tetradic
#6A1E97 #972D1E #4B971E #1E8797
square
#6A1E97 #972D1E #4B971E #1E8797
split-complementary
#6A1E97 #87971E #1E972D
monochromatic
#220A31 #461464 #6A1E97 #8E28CA #A953DD

Accessibility & contrast

On white

9.35
#6A1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6A1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1E97
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1E97#FFFFFF#000000##FFFFFF
##6A1E971.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#633D5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1e97;
/* rgb */ color: rgb(106, 30, 151);
/* oklch */ color: oklch(42.0% 0.185 308.8);
Tailwind
colors: {
  custom: {
    50: '#9964b6',
    500: '#6a1e97',
    950: '#000000',
  },
}
SCSS
$custom: #6a1e97;
$custom-light: #9964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1e97",
  "rgb": {
    "r": 106,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 277.686,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42021,
    "c": 0.18453,
    "h": 308.8
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#6A1E97
secondary
#7AC051
accent
#EA3E7E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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