#6C237E#6C237E

#6C237E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.9% C 0.156 H 319.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#6C237E
RGBrgb(108, 35, 126)
HSLhsl(288, 57%, 32%)
HSVhsv(288, 72%, 49%)
CMYKcmyk(14.3%, 72.2%, 0%, 50.6%)
CIE-LABlab(29.15, 45.68, -36.44)
CIE-LCHlch(29.15, 58.44, 321.42°)
OKLaboklab(40.92% 0.1173 -0.1021)
OKLCHoklch(40.92% 0.156 319)
XYZxyz(10.5508, 5.8971, 20.3171)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C237E #357E23
analogous
#3F237E #6C237E #7E2363
triadic
#6C237E #7E6C23 #237E6C
tetradic
#6C237E #7E3F23 #357E23 #23637E
square
#6C237E #7E3F23 #357E23 #23637E
split-complementary
#6C237E #637E23 #237E3F
monochromatic
#1A081E #43164E #6C237E #9530AE #B44ECE

Accessibility & contrast

On white

9.64
#6C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6C237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C237E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C237E#FFFFFF#000000##FFFFFF
##6C237E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#6C344E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6c237e;
/* rgb */ color: rgb(108, 35, 126);
/* oklch */ color: oklch(40.9% 0.156 319.0);
Tailwind
colors: {
  custom: {
    50: '#9965a4',
    500: '#6c237e',
    950: '#000000',
  },
}
SCSS
$custom: #6c237e;
$custom-light: #9965a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c237e",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 288.132,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.15556,
    "h": 319
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#6C237E
secondary
#60B04C
accent
#E04866
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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