#6C228E#6C228E

#6C228E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.172 H 312.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#6C228E
RGBrgb(108, 34, 142)
HSLhsl(281, 61%, 35%)
HSVhsv(281, 76%, 56%)
CMYKcmyk(23.9%, 76.1%, 0%, 44.3%)
CIE-LABlab(30.12, 49.48, -44.86)
CIE-LCHlch(30.12, 66.79, 317.81°)
OKLaboklab(41.97% 0.1165 -0.1268)
OKLCHoklch(41.97% 0.172 312.6)
XYZxyz(11.6380, 6.2855, 26.1861)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C228E #448E22
analogous
#36228E #6C228E #8E227A
triadic
#6C228E #8E6C22 #228E6C
tetradic
#6C228E #8E3622 #448E22 #227A8E
square
#6C228E #8E3622 #448E22 #227A8E
split-complementary
#6C228E #7A8E22 #228E36
monochromatic
#210A2B #46165D #6C228E #922EBF #AD54D6

Accessibility & contrast

On white

9.30
#6C228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6C228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C228E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C228E#FFFFFF#000000##FFFFFF
##6C228E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#14488C
Tritanopia (blue-blind)
#683B56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c228e;
/* rgb */ color: rgb(108, 34, 142);
/* oklch */ color: oklch(42.0% 0.172 312.6);
Tailwind
colors: {
  custom: {
    50: '#9a65b0',
    500: '#6c228e',
    950: '#000000',
  },
}
SCSS
$custom: #6c228e;
$custom-light: #9a65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c228e",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 281.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41967,
    "c": 0.17222,
    "h": 312.6
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#6C228E
secondary
#73BA52
accent
#E44376
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C228E

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

Preview Lab → · Contrast checker → · Palette generator →

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