#6B227E#6B227E

#6B227E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.156 H 318.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#6B227E
RGBrgb(107, 34, 126)
HSLhsl(288, 58%, 31%)
HSVhsv(288, 73%, 49%)
CMYKcmyk(15.1%, 73%, 0%, 50.6%)
CIE-LABlab(28.84, 45.87, -36.94)
CIE-LCHlch(28.84, 58.90, 321.15°)
OKLaboklab(40.67% 0.1171 -0.1036)
OKLCHoklch(40.67% 0.156 318.5)
XYZxyz(10.4008, 5.7767, 20.3018)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B227E #357E22
analogous
#3D227E #6B227E #7E2263
triadic
#6B227E #7E6B22 #227E6B
tetradic
#6B227E #7E3D22 #357E22 #22637E
square
#6B227E #7E3D22 #357E22 #22637E
split-complementary
#6B227E #637E22 #227E3D
monochromatic
#19081E #42154E #6B227E #942FAE #B44CCF

Accessibility & contrast

On white

9.74
#6B227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6B227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B227E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B227E#FFFFFF#000000##FFFFFF
##6B227E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#27467C
Tritanopia (blue-blind)
#6B344D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b227e;
/* rgb */ color: rgb(107, 34, 126);
/* oklch */ color: oklch(40.7% 0.156 318.5);
Tailwind
colors: {
  custom: {
    50: '#9864a4',
    500: '#6b227e',
    950: '#000000',
  },
}
SCSS
$custom: #6b227e;
$custom-light: #9864a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b227e",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 287.609,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40668,
    "c": 0.15641,
    "h": 318.5
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#6B227E
secondary
#60B14B
accent
#E14767
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B227E

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

Preview Lab → · Contrast checker → · Palette generator →

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