#6C236F#6C236F

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

Color values

HEX#6C236F
RGBrgb(108, 35, 111)
HSLhsl(298, 52%, 29%)
HSVhsv(298, 68%, 44%)
CMYKcmyk(2.7%, 68.5%, 0%, 56.5%)
CIE-LABlab(28.22, 42.70, -28.41)
CIE-LCHlch(28.22, 51.29, 326.36°)
OKLaboklab(39.95% 0.1176 -0.0787)
OKLCHoklch(39.95% 0.141 326.2)
XYZxyz(9.6544, 5.5385, 15.5964)
Luminance0.0554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C236F #266F23
analogous
#46236F #6C236F #6F234C
triadic
#6C236F #6F6C23 #236F6C
tetradic
#6C236F #6F4623 #266F23 #234C6F
square
#6C236F #6F4623 #266F23 #234C6F
split-complementary
#6C236F #4C6F23 #236F46
monochromatic
#170717 #3F1440 #6C236F #99329E #C047C5

Accessibility & contrast

On white

9.96
#6C236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6C236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C236F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C236F#FFFFFF#000000##FFFFFF
##6C236F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#33466D
Tritanopia (blue-blind)
#6F2E46
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c236f;
/* rgb */ color: rgb(108, 35, 111);
/* oklch */ color: oklch(40.0% 0.141 326.2);
Tailwind
colors: {
  custom: {
    50: '#996499',
    500: '#6c236f',
    950: '#000000',
  },
}
SCSS
$custom: #6c236f;
$custom-light: #996499;
$custom-dark: #000000;
JSON
{
  "hex": "#6c236f",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 297.632,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.14148,
    "h": 326.2
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

primary
#6C236F
secondary
#4FA24C
accent
#DB4C52
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #6C236F

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

Preview Lab → · Contrast checker → · Palette generator →

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