#6D227C#6D227C

#6D227C is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.8% C 0.155 H 320.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#6D227C
RGBrgb(109, 34, 124)
HSLhsl(290, 57%, 31%)
HSVhsv(290, 73%, 49%)
CMYKcmyk(12.1%, 72.6%, 0%, 51.4%)
CIE-LABlab(29.03, 45.93, -35.36)
CIE-LCHlch(29.03, 57.96, 322.41°)
OKLaboklab(40.83% 0.1198 -0.0989)
OKLCHoklch(40.83% 0.155 320.5)
XYZxyz(10.5164, 5.8510, 19.6403)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D227C #317C22
analogous
#40227C #6D227C #7C225E
triadic
#6D227C #7C6D22 #227C6D
tetradic
#6D227C #7C4022 #317C22 #225E7C
square
#6D227C #7C4022 #317C22 #225E7C
split-complementary
#6D227C #5E7C22 #227C40
monochromatic
#19081C #43154C #6D227C #972FAC #B84BCE

Accessibility & contrast

On white

9.68
#6D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D227C
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D227C#FFFFFF#000000##FFFFFF
##6D227C1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#2B477A
Tritanopia (blue-blind)
#6E334C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d227c;
/* rgb */ color: rgb(109, 34, 124);
/* oklch */ color: oklch(40.8% 0.155 320.5);
Tailwind
colors: {
  custom: {
    50: '#9a65a2',
    500: '#6d227c',
    950: '#000000',
  },
}
SCSS
$custom: #6d227c;
$custom-light: #9a65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d227c",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 290,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40828,
    "c": 0.15541,
    "h": 320.5
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#6D227C
secondary
#5CAF4B
accent
#E04861
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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