#6C237C#6C237C

#6C237C is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.154 H 319.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#6C237C
RGBrgb(108, 35, 124)
HSLhsl(289, 56%, 31%)
HSVhsv(289, 72%, 49%)
CMYKcmyk(12.9%, 71.8%, 0%, 51.4%)
CIE-LABlab(29.02, 45.27, -35.39)
CIE-LCHlch(29.02, 57.46, 321.98°)
OKLaboklab(40.79% 0.1174 -0.0991)
OKLCHoklch(40.79% 0.154 319.8)
XYZxyz(10.4230, 5.8460, 19.6442)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C237C #337C23
analogous
#3F237C #6C237C #7C235F
triadic
#6C237C #7C6C23 #237C6C
tetradic
#6C237C #7C3F23 #337C23 #235F7C
square
#6C237C #7C3F23 #337C23 #235F7C
split-complementary
#6C237C #5F7C23 #237C3F
monochromatic
#19081D #42164C #6C237C #9630AC #B64DCD

Accessibility & contrast

On white

9.68
#6C237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6C237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C237C
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C237C#FFFFFF#000000##FFFFFF
##6C237C1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#2A477A
Tritanopia (blue-blind)
#6C334D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c237c;
/* rgb */ color: rgb(108, 35, 124);
/* oklch */ color: oklch(40.8% 0.154 319.8);
Tailwind
colors: {
  custom: {
    50: '#9965a2',
    500: '#6c237c',
    950: '#000000',
  },
}
SCSS
$custom: #6c237c;
$custom-light: #9965a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c237c",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 289.213,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40786,
    "c": 0.15365,
    "h": 319.8
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#6C237C
secondary
#5EAF4C
accent
#DF4964
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C237C

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

Preview Lab → · Contrast checker → · Palette generator →

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