#6A2497#6A2497

#6A2497 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.178 H 308.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6A2497
RGBrgb(106, 36, 151)
HSLhsl(277, 61%, 37%)
HSVhsv(277, 76%, 59%)
CMYKcmyk(29.8%, 76.2%, 0%, 40.8%)
CIE-LABlab(30.78, 50.28, -49.33)
CIE-LCHlch(30.78, 70.44, 315.55°)
OKLaboklab(42.59% 0.1102 -0.14)
OKLCHoklch(42.59% 0.178 308.2)
XYZxyz(12.1595, 6.5605, 29.8979)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2497 #519724
analogous
#312497 #6A2497 #97248B
triadic
#6A2497 #976A24 #24976A
tetradic
#6A2497 #973124 #519724 #248B97
square
#6A2497 #973124 #519724 #248B97
split-complementary
#6A2497 #8B9724 #249731
monochromatic
#250C34 #471866 #6A2497 #8D30C8 #A85DD8

Accessibility & contrast

On white

9.08
#6A2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6A2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2497
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2497#FFFFFF#000000##FFFFFF
##6A24971.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a2497;
/* rgb */ color: rgb(106, 36, 151);
/* oklch */ color: oklch(42.6% 0.178 308.2);
Tailwind
colors: {
  custom: {
    50: '#9966b6',
    500: '#6a2497',
    950: '#000000',
  },
}
SCSS
$custom: #6a2497;
$custom-light: #9966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2497",
  "rgb": {
    "r": 106,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 276.522,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42588,
    "c": 0.17821,
    "h": 308.2
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#6A2497
secondary
#81BD5A
accent
#E54382
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2497

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

Preview Lab → · Contrast checker → · Palette generator →

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