#6A2A91#6A2A91

#6A2A91 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.165 H 309.6°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#6A2A91
RGBrgb(106, 42, 145)
HSLhsl(277, 55%, 37%)
HSVhsv(277, 71%, 57%)
CMYKcmyk(26.9%, 71%, 0%, 43.1%)
CIE-LABlab(31.27, 46.28, -44.87)
CIE-LCHlch(31.27, 64.46, 315.88°)
OKLaboklab(42.79% 0.105 -0.127)
OKLCHoklch(42.79% 0.165 309.6)
XYZxyz(11.8816, 6.7647, 27.4624)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2A91 #51912A
analogous
#372A91 #6A2A91 #912A85
triadic
#6A2A91 #916A2A #2A916A
tetradic
#6A2A91 #91372A #51912A #2A8591
square
#6A2A91 #91372A #51912A #2A8591
split-complementary
#6A2A91 #85912A #2A9137
monochromatic
#250F32 #471C62 #6A2A91 #8D38C0 #A863D2

Accessibility & contrast

On white

8.93
#6A2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6A2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2A91
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2A91#FFFFFF#000000##FFFFFF
##6A2A911.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#174A8F
Tritanopia (blue-blind)
#64405A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a2a91;
/* rgb */ color: rgb(106, 42, 145);
/* oklch */ color: oklch(42.8% 0.165 309.6);
Tailwind
colors: {
  custom: {
    50: '#9869b2',
    500: '#6a2a91',
    950: '#000000',
  },
}
SCSS
$custom: #6a2a91;
$custom-light: #9869b2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2a91",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 277.282,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42787,
    "c": 0.16477,
    "h": 309.6
  },
  "luminance": 0.06764
}

Semantic roles & 50–950 ramp

primary
#6A2A91
secondary
#81B85F
accent
#DE4982
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6A2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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