#6A2897#6A2897

#6A2897 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.174 H 307.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#6A2897
RGBrgb(106, 40, 151)
HSLhsl(276, 58%, 37%)
HSVhsv(276, 74%, 59%)
CMYKcmyk(29.8%, 73.5%, 0%, 40.8%)
CIE-LABlab(31.39, 48.57, -48.36)
CIE-LCHlch(31.39, 68.54, 315.13°)
OKLaboklab(43.01% 0.1062 -0.1372)
OKLCHoklch(43.01% 0.174 307.7)
XYZxyz(12.2874, 6.8163, 29.9405)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2897 #559728
analogous
#332897 #6A2897 #97288C
triadic
#6A2897 #976A28 #28976A
tetradic
#6A2897 #973328 #559728 #288C97
square
#6A2897 #973328 #559728 #288C97
split-complementary
#6A2897 #8C9728 #289733
monochromatic
#260E36 #481B67 #6A2897 #8C35C7 #A864D6

Accessibility & contrast

On white

8.89
#6A2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6A2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2897
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2897#FFFFFF#000000##FFFFFF
##6A28971.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#024A95
Tritanopia (blue-blind)
#63425D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a2897;
/* rgb */ color: rgb(106, 40, 151);
/* oklch */ color: oklch(43.0% 0.174 307.7);
Tailwind
colors: {
  custom: {
    50: '#9968b6',
    500: '#6a2897',
    950: '#000000',
  },
}
SCSS
$custom: #6a2897;
$custom-light: #9968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2897",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 275.676,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43012,
    "c": 0.17354,
    "h": 307.7
  },
  "luminance": 0.06816
}

Semantic roles & 50–950 ramp

primary
#6A2897
secondary
#85BC5F
accent
#E14685
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2897

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

Preview Lab → · Contrast checker → · Palette generator →

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