#6C2E9D#6C2E9D

#6C2E9D is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.173 H 306.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#6C2E9D
RGBrgb(108, 46, 157)
HSLhsl(274, 55%, 40%)
HSVhsv(274, 71%, 62%)
CMYKcmyk(31.2%, 70.7%, 0%, 38.4%)
CIE-LABlab(33.09, 47.66, -49.25)
CIE-LCHlch(33.09, 68.53, 314.06°)
OKLaboklab(44.42% 0.1018 -0.1398)
OKLCHoklch(44.42% 0.173 306.1)
XYZxyz(13.2458, 7.5766, 32.6564)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2E9D #5F9D2E
analogous
#352E9D #6C2E9D #9D2E96
triadic
#6C2E9D #9D6C2E #2E9D6C
tetradic
#6C2E9D #9D352E #5F9D2E #2E969D
square
#6C2E9D #9D352E #5F9D2E #2E969D
split-complementary
#6C2E9D #969D2E #2E9D35
monochromatic
#2B123E #4B206E #6C2E9D #8C41C7 #A970D5

Accessibility & contrast

On white

8.35
#6C2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6C2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2E9D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2E9D#FFFFFF#000000##FFFFFF
##6C2E9D1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#064E9B
Tritanopia (blue-blind)
#634762
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c2e9d;
/* rgb */ color: rgb(108, 46, 157);
/* oklch */ color: oklch(44.4% 0.173 306.1);
Tailwind
colors: {
  custom: {
    50: '#9a6cbb',
    500: '#6c2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #6c2e9d;
$custom-light: #9a6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2e9d",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 273.514,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44422,
    "c": 0.17292,
    "h": 306.1
  },
  "luminance": 0.07576
}

Semantic roles & 50–950 ramp

primary
#6C2E9D
secondary
#8FBD6A
accent
#DE4A8B
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6C2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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