#6D227B#6D227B

#6D227B is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.154 H 320.9°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#6D227B
RGBrgb(109, 34, 123)
HSLhsl(291, 57%, 31%)
HSVhsv(291, 72%, 48%)
CMYKcmyk(11.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(28.97, 45.73, -34.83)
CIE-LCHlch(28.97, 57.48, 322.70°)
OKLaboklab(40.76% 0.1199 -0.0974)
OKLCHoklch(40.76% 0.154 320.9)
XYZxyz(10.4534, 5.8259, 19.3089)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D227B #307B22
analogous
#40227B #6D227B #7B225C
triadic
#6D227B #7B6D22 #227B6D
tetradic
#6D227B #7B4022 #307B22 #225C7B
square
#6D227B #7B4022 #307B22 #225C7B
split-complementary
#6D227B #5C7B22 #227B40
monochromatic
#18071B #43154B #6D227B #972FAB #B84ACD

Accessibility & contrast

On white

9.70
#6D227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D227B
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D227B#FFFFFF#000000##FFFFFF
##6D227B1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#2C4779
Tritanopia (blue-blind)
#6E324C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d227b;
/* rgb */ color: rgb(109, 34, 123);
/* oklch */ color: oklch(40.8% 0.154 320.9);
Tailwind
colors: {
  custom: {
    50: '#9a64a2',
    500: '#6d227b',
    950: '#000000',
  },
}
SCSS
$custom: #6d227b;
$custom-light: #9a64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d227b",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 290.562,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40761,
    "c": 0.15447,
    "h": 320.9
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#6D227B
secondary
#5BAE4B
accent
#E04860
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6D227B

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

Preview Lab → · Contrast checker → · Palette generator →

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