#6A2298#6A2298

#6A2298 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.181 H 308.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#6A2298
RGBrgb(106, 34, 152)
HSLhsl(277, 63%, 36%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(30.3%, 77.6%, 0%, 40.4%)
CIE-LABlab(30.58, 51.31, -50.27)
CIE-LCHlch(30.58, 71.84, 315.59°)
OKLaboklab(42.47% 0.1119 -0.1428)
OKLCHoklch(42.47% 0.181 308.1)
XYZxyz(12.1822, 6.4754, 30.3078)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2298 #509822
analogous
#2F2298 #6A2298 #98228B
triadic
#6A2298 #986A22 #22986A
tetradic
#6A2298 #982F22 #509822 #228B98
square
#6A2298 #982F22 #509822 #228B98
split-complementary
#6A2298 #8B9822 #22982F
monochromatic
#240C34 #471766 #6A2298 #8D2DCA #A85ADA

Accessibility & contrast

On white

9.15
#6A2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6A2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2298
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2298#FFFFFF#000000##FFFFFF
##6A22981.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a2298;
/* rgb */ color: rgb(106, 34, 152);
/* oklch */ color: oklch(42.5% 0.181 308.1);
Tailwind
colors: {
  custom: {
    50: '#9965b7',
    500: '#6a2298',
    950: '#000000',
  },
}
SCSS
$custom: #6a2298;
$custom-light: #9965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2298",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 276.61,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42469,
    "c": 0.1814,
    "h": 308.1
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#6A2298
secondary
#80BE57
accent
#E64182
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2298

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

Preview Lab → · Contrast checker → · Palette generator →

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