#6A2198#6A2198

#6A2198 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.182 H 308.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#6A2198
RGBrgb(106, 33, 152)
HSLhsl(277, 64%, 36%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(30.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(30.45, 51.70, -50.49)
CIE-LCHlch(30.45, 72.27, 315.68°)
OKLaboklab(42.37% 0.1128 -0.1434)
OKLCHoklch(42.37% 0.182 308.2)
XYZxyz(12.1540, 6.4191, 30.2984)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2198 #4F9821
analogous
#2F2198 #6A2198 #98218B
triadic
#6A2198 #986A21 #21986A
tetradic
#6A2198 #982F21 #4F9821 #218B98
square
#6A2198 #982F21 #4F9821 #218B98
split-complementary
#6A2198 #8B9821 #21982F
monochromatic
#240B33 #471666 #6A2198 #8D2CCA #A859DB

Accessibility & contrast

On white

9.20
#6A2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2198
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2198#FFFFFF#000000##FFFFFF
##6A21981.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#633F5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2198;
/* rgb */ color: rgb(106, 33, 152);
/* oklch */ color: oklch(42.4% 0.182 308.2);
Tailwind
colors: {
  custom: {
    50: '#9965b7',
    500: '#6a2198',
    950: '#000000',
  },
}
SCSS
$custom: #6a2198;
$custom-light: #9965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2198",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 276.807,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42374,
    "c": 0.18246,
    "h": 308.2
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#6A2198
secondary
#7EBF56
accent
#E74081
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2198

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

Preview Lab → · Contrast checker → · Palette generator →

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