#6C227F#6C227F

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

Color values

HEX#6C227F
RGBrgb(108, 34, 127)
HSLhsl(288, 58%, 32%)
HSVhsv(288, 73%, 50%)
CMYKcmyk(15%, 73.2%, 0%, 50.2%)
CIE-LABlab(29.07, 46.31, -37.20)
CIE-LCHlch(29.07, 59.40, 321.22°)
OKLaboklab(40.89% 0.1184 -0.1044)
OKLCHoklch(40.89% 0.158 318.6)
XYZxyz(10.5866, 5.8650, 20.6490)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C227F #357F22
analogous
#3E227F #6C227F #7F2264
triadic
#6C227F #7F6C22 #227F6C
tetradic
#6C227F #7F3E22 #357F22 #22647F
square
#6C227F #7F3E22 #357F22 #22647F
split-complementary
#6C227F #647F22 #227F3E
monochromatic
#1A081E #43154F #6C227F #952FAF #B44CCF

Accessibility & contrast

On white

9.66
#6C227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C227F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C227F#FFFFFF#000000##FFFFFF
##6C227F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#27477D
Tritanopia (blue-blind)
#6C344E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c227f;
/* rgb */ color: rgb(108, 34, 127);
/* oklch */ color: oklch(40.9% 0.158 318.6);
Tailwind
colors: {
  custom: {
    50: '#9965a5',
    500: '#6c227f',
    950: '#000000',
  },
}
SCSS
$custom: #6c227f;
$custom-light: #9965a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c227f",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 287.742,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40885,
    "c": 0.1578,
    "h": 318.6
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#6C227F
secondary
#60B24B
accent
#E14766
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C227F

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

Preview Lab → · Contrast checker → · Palette generator →

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