#6C236E#6C236E

#6C236E is a dark, vivid purple. Relative luminance 0.055; OKLCH L 39.9% C 0.141 H 326.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#6C236E
RGBrgb(108, 35, 110)
HSLhsl(298, 52%, 28%)
HSVhsv(298, 68%, 43%)
CMYKcmyk(1.8%, 68.2%, 0%, 56.9%)
CIE-LABlab(28.16, 42.51, -27.86)
CIE-LCHlch(28.16, 50.83, 326.76°)
OKLaboklab(39.89% 0.1175 -0.0771)
OKLCHoklch(39.89% 0.141 326.7)
XYZxyz(9.5997, 5.5166, 15.3080)
Luminance0.0552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C236E #256E23
analogous
#46236E #6C236E #6E234A
triadic
#6C236E #6E6C23 #236E6C
tetradic
#6C236E #6E4623 #256E23 #234A6E
square
#6C236E #6E4623 #256E23 #234A6E
split-complementary
#6C236E #4A6E23 #236E46
monochromatic
#170717 #3E1440 #6C236E #9A329C #C147C4

Accessibility & contrast

On white

9.98
#6C236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6C236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C236E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C236E#FFFFFF#000000##FFFFFF
##6C236E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173C70
Deuteranopia (green-blind)
#34466C
Tritanopia (blue-blind)
#6F2E45
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6c236e;
/* rgb */ color: rgb(108, 35, 110);
/* oklch */ color: oklch(39.9% 0.141 326.7);
Tailwind
colors: {
  custom: {
    50: '#996498',
    500: '#6c236e',
    950: '#000000',
  },
}
SCSS
$custom: #6c236e;
$custom-light: #996498;
$custom-dark: #000000;
JSON
{
  "hex": "#6c236e",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 298.4,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39889,
    "c": 0.14056,
    "h": 326.7
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#6C236E
secondary
#4EA14C
accent
#DB4D50
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060D
muted
#7E7A7E

Preview Lab

Preview with #6C236E

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

Preview Lab → · Contrast checker → · Palette generator →

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