#6A2396#6A2396

#6A2396 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.178 H 308.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#6A2396
RGBrgb(106, 35, 150)
HSLhsl(277, 62%, 36%)
HSVhsv(277, 77%, 59%)
CMYKcmyk(29.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(30.57, 50.46, -49.08)
CIE-LCHlch(30.57, 70.39, 315.80°)
OKLaboklab(42.41% 0.1114 -0.1393)
OKLCHoklch(42.41% 0.178 308.6)
XYZxyz(12.0488, 6.4685, 29.4621)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2396 #4F9623
analogous
#302396 #6A2396 #962389
triadic
#6A2396 #966A23 #23966A
tetradic
#6A2396 #963023 #4F9623 #238996
square
#6A2396 #963023 #4F9623 #238996
split-complementary
#6A2396 #899623 #239630
monochromatic
#240C33 #471764 #6A2396 #8D2FC8 #A85BD9

Accessibility & contrast

On white

9.16
#6A2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6A2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2396
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2396#FFFFFF#000000##FFFFFF
##6A23961.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#633F5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2396;
/* rgb */ color: rgb(106, 35, 150);
/* oklch */ color: oklch(42.4% 0.178 308.6);
Tailwind
colors: {
  custom: {
    50: '#9966b6',
    500: '#6a2396',
    950: '#000000',
  },
}
SCSS
$custom: #6a2396;
$custom-light: #9966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2396",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 277.043,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42408,
    "c": 0.17833,
    "h": 308.6
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#6A2396
secondary
#7EBD58
accent
#E54381
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2396

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

Preview Lab → · Contrast checker → · Palette generator →

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