#6C228F#6C228F

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

Color values

HEX#6C228F
RGBrgb(108, 34, 143)
HSLhsl(281, 62%, 35%)
HSVhsv(281, 76%, 56%)
CMYKcmyk(24.5%, 76.2%, 0%, 43.9%)
CIE-LABlab(30.20, 49.70, -45.35)
CIE-LCHlch(30.20, 67.28, 317.62°)
OKLaboklab(42.04% 0.1164 -0.1283)
OKLCHoklch(42.04% 0.173 312.2)
XYZxyz(11.7134, 6.3157, 26.5833)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C228F #458F22
analogous
#36228F #6C228F #8F227C
triadic
#6C228F #8F6C22 #228F6C
tetradic
#6C228F #8F3622 #458F22 #227C8F
square
#6C228F #8F3622 #458F22 #227C8F
split-complementary
#6C228F #7C8F22 #228F36
monochromatic
#210A2C #47165E #6C228F #912EC0 #AD55D7

Accessibility & contrast

On white

9.28
#6C228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C228F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C228F#FFFFFF#000000##FFFFFF
##6C228F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#12498D
Tritanopia (blue-blind)
#683B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c228f;
/* rgb */ color: rgb(108, 34, 143);
/* oklch */ color: oklch(42.0% 0.173 312.2);
Tailwind
colors: {
  custom: {
    50: '#9a65b0',
    500: '#6c228f',
    950: '#000000',
  },
}
SCSS
$custom: #6c228f;
$custom-light: #9a65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c228f",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 280.734,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42043,
    "c": 0.1732,
    "h": 312.2
  },
  "luminance": 0.06315
}

Semantic roles & 50–950 ramp

primary
#6C228F
secondary
#74BA52
accent
#E54377
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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