#6A2397#6A2397

#6A2397 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.179 H 308.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#6A2397
RGBrgb(106, 35, 151)
HSLhsl(277, 62%, 36%)
HSVhsv(277, 77%, 59%)
CMYKcmyk(29.8%, 76.8%, 0%, 40.8%)
CIE-LABlab(30.64, 50.69, -49.56)
CIE-LCHlch(30.64, 70.89, 315.64°)
OKLaboklab(42.49% 0.1112 -0.1407)
OKLCHoklch(42.49% 0.179 308.3)
XYZxyz(12.1296, 6.5008, 29.8879)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2397 #509723
analogous
#302397 #6A2397 #97238A
triadic
#6A2397 #976A23 #23976A
tetradic
#6A2397 #973023 #509723 #238A97
square
#6A2397 #973023 #509723 #238A97
split-complementary
#6A2397 #8A9723 #239730
monochromatic
#240C34 #471765 #6A2397 #8D2FC9 #A85BD9

Accessibility & contrast

On white

9.13
#6A2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6A2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2397
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2397#FFFFFF#000000##FFFFFF
##6A23971.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#633F5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2397;
/* rgb */ color: rgb(106, 35, 151);
/* oklch */ color: oklch(42.5% 0.179 308.3);
Tailwind
colors: {
  custom: {
    50: '#9966b6',
    500: '#6a2397',
    950: '#000000',
  },
}
SCSS
$custom: #6a2397;
$custom-light: #9966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2397",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 276.724,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42487,
    "c": 0.17932,
    "h": 308.3
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#6A2397
secondary
#80BE58
accent
#E54282
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2397

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

Preview Lab → · Contrast checker → · Palette generator →

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