#6A2591#6A2591

#6A2591 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.171 H 310.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#6A2591
RGBrgb(106, 37, 145)
HSLhsl(278, 59%, 36%)
HSVhsv(278, 74%, 57%)
CMYKcmyk(26.9%, 74.5%, 0%, 43.1%)
CIE-LABlab(30.48, 48.50, -46.15)
CIE-LCHlch(30.48, 66.95, 316.43°)
OKLaboklab(42.23% 0.1103 -0.1307)
OKLCHoklch(42.23% 0.171 310.2)
XYZxyz(11.7153, 6.4319, 27.4069)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2591 #4C9125
analogous
#342591 #6A2591 #912582
triadic
#6A2591 #916A25 #25916A
tetradic
#6A2591 #913425 #4C9125 #258291
square
#6A2591 #913425 #4C9125 #258291
split-complementary
#6A2591 #829125 #259134
monochromatic
#230C2F #461960 #6A2591 #8E31C2 #A95BD5

Accessibility & contrast

On white

9.18
#6A2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6A2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2591
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2591#FFFFFF#000000##FFFFFF
##6A25911.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#0E498F
Tritanopia (blue-blind)
#653E59
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2591;
/* rgb */ color: rgb(106, 37, 145);
/* oklch */ color: oklch(42.2% 0.171 310.2);
Tailwind
colors: {
  custom: {
    50: '#9967b2',
    500: '#6a2591',
    950: '#000000',
  },
}
SCSS
$custom: #6a2591;
$custom-light: #9967b2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2591",
  "rgb": {
    "r": 106,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 278.333,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42227,
    "c": 0.17103,
    "h": 310.2
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#6A2591
secondary
#7BBA58
accent
#E3457E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2591

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

Preview Lab → · Contrast checker → · Palette generator →

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