#6B227D#6B227D

#6B227D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.6% C 0.155 H 318.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#6B227D
RGBrgb(107, 34, 125)
HSLhsl(288, 57%, 31%)
HSVhsv(288, 73%, 49%)
CMYKcmyk(14.4%, 72.8%, 0%, 51%)
CIE-LABlab(28.78, 45.66, -36.42)
CIE-LCHlch(28.78, 58.41, 321.42°)
OKLaboklab(40.6% 0.1172 -0.1021)
OKLCHoklch(40.6% 0.155 318.9)
XYZxyz(10.3366, 5.7510, 19.9636)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B227D #347D22
analogous
#3D227D #6B227D #7D2261
triadic
#6B227D #7D6B22 #227D6B
tetradic
#6B227D #7D3D22 #347D22 #22617D
square
#6B227D #7D3D22 #347D22 #22617D
split-complementary
#6B227D #617D22 #227D3D
monochromatic
#19081D #42154D #6B227D #942FAD #B44BCE

Accessibility & contrast

On white

9.77
#6B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6B227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B227D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B227D#FFFFFF#000000##FFFFFF
##6B227D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#28467B
Tritanopia (blue-blind)
#6B334D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b227d;
/* rgb */ color: rgb(107, 34, 125);
/* oklch */ color: oklch(40.6% 0.155 318.9);
Tailwind
colors: {
  custom: {
    50: '#9864a3',
    500: '#6b227d',
    950: '#000000',
  },
}
SCSS
$custom: #6b227d;
$custom-light: #9864a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b227d",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 288.132,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.406,
    "c": 0.15545,
    "h": 318.9
  },
  "luminance": 0.05751
}

Semantic roles & 50–950 ramp

primary
#6B227D
secondary
#5FB04B
accent
#E04766
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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