#6A2D97#6A2D97

#6A2D97 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.167 H 307.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#6A2D97
RGBrgb(106, 45, 151)
HSLhsl(275, 54%, 38%)
HSVhsv(275, 70%, 59%)
CMYKcmyk(29.8%, 70.2%, 0%, 40.8%)
CIE-LABlab(32.20, 46.27, -47.03)
CIE-LCHlch(32.20, 65.98, 314.53°)
OKLaboklab(43.6% 0.1009 -0.1334)
OKLCHoklch(43.6% 0.167 307.1)
XYZxyz(12.4670, 7.1755, 30.0004)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2D97 #5A972D
analogous
#352D97 #6A2D97 #972D8F
triadic
#6A2D97 #976A2D #2D976A
tetradic
#6A2D97 #97352D #5A972D #2D8F97
square
#6A2D97 #97352D #5A972D #2D8F97
split-complementary
#6A2D97 #8F972D #2D9735
monochromatic
#281139 #491F68 #6A2D97 #8B3CC5 #A76BD3

Accessibility & contrast

On white

8.62
#6A2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6A2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2D97
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2D97#FFFFFF#000000##FFFFFF
##6A2D971.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#104C95
Tritanopia (blue-blind)
#63455E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a2d97;
/* rgb */ color: rgb(106, 45, 151);
/* oklch */ color: oklch(43.6% 0.167 307.1);
Tailwind
colors: {
  custom: {
    50: '#996bb6',
    500: '#6a2d97',
    950: '#000000',
  },
}
SCSS
$custom: #6a2d97;
$custom-light: #996bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2d97",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 274.528,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43595,
    "c": 0.16722,
    "h": 307.1
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#6A2D97
secondary
#8ABA66
accent
#DD4A89
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6A2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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