#6A2098#6A2098

#6A2098 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.183 H 308.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#6A2098
RGBrgb(106, 32, 152)
HSLhsl(277, 65%, 36%)
HSVhsv(277, 79%, 60%)
CMYKcmyk(30.3%, 78.9%, 0%, 40.4%)
CIE-LABlab(30.31, 52.08, -50.71)
CIE-LCHlch(30.31, 72.69, 315.77°)
OKLaboklab(42.28% 0.1136 -0.1441)
OKLCHoklch(42.28% 0.183 308.3)
XYZxyz(12.1267, 6.3644, 30.2893)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2098 #4E9820
analogous
#2E2098 #6A2098 #98208A
triadic
#6A2098 #986A20 #20986A
tetradic
#6A2098 #982E20 #4E9820 #208A98
square
#6A2098 #982E20 #4E9820 #208A98
split-complementary
#6A2098 #8A9820 #20982E
monochromatic
#230B33 #471565 #6A2098 #8D2BCB #A957DC

Accessibility & contrast

On white

9.24
#6A2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6A2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2098
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2098#FFFFFF#000000##FFFFFF
##6A20981.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a2098;
/* rgb */ color: rgb(106, 32, 152);
/* oklch */ color: oklch(42.3% 0.183 308.3);
Tailwind
colors: {
  custom: {
    50: '#9965b7',
    500: '#6a2098',
    950: '#000000',
  },
}
SCSS
$custom: #6a2098;
$custom-light: #9965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2098",
  "rgb": {
    "r": 106,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 277,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42281,
    "c": 0.18349,
    "h": 308.3
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#6A2098
secondary
#7DBF54
accent
#E84080
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2098

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

Preview Lab → · Contrast checker → · Palette generator →

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