#6A2295#6A2295

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

Color values

HEX#6A2295
RGBrgb(106, 34, 149)
HSLhsl(278, 63%, 36%)
HSVhsv(278, 77%, 58%)
CMYKcmyk(28.9%, 77.2%, 0%, 41.6%)
CIE-LABlab(30.35, 50.64, -48.81)
CIE-LCHlch(30.35, 70.33, 316.05°)
OKLaboklab(42.23% 0.1125 -0.1385)
OKLCHoklch(42.23% 0.178 309.1)
XYZxyz(11.9396, 6.3784, 29.0301)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2295 #4D9522
analogous
#302295 #6A2295 #952286
triadic
#6A2295 #956A22 #22956A
tetradic
#6A2295 #953022 #4D9522 #228695
square
#6A2295 #953022 #4D9522 #228695
split-complementary
#6A2295 #869522 #229530
monochromatic
#230B31 #471763 #6A2295 #8D2DC7 #A958D9

Accessibility & contrast

On white

9.23
#6A2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6A2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2295
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2295#FFFFFF#000000##FFFFFF
##6A22951.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#633E5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a2295;
/* rgb */ color: rgb(106, 34, 149);
/* oklch */ color: oklch(42.2% 0.178 309.1);
Tailwind
colors: {
  custom: {
    50: '#9965b5',
    500: '#6a2295',
    950: '#000000',
  },
}
SCSS
$custom: #6a2295;
$custom-light: #9965b5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2295",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 277.565,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42231,
    "c": 0.17844,
    "h": 309.1
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#6A2295
secondary
#7CBD56
accent
#E6427F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2295

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

Preview Lab → · Contrast checker → · Palette generator →

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