#6B228E#6B228E

#6B228E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.172 H 312.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#6B228E
RGBrgb(107, 34, 142)
HSLhsl(281, 61%, 35%)
HSVhsv(281, 76%, 56%)
CMYKcmyk(24.6%, 76.1%, 0%, 44.3%)
CIE-LABlab(29.97, 49.28, -45.11)
CIE-LCHlch(29.97, 66.81, 317.53°)
OKLaboklab(41.83% 0.1152 -0.1276)
OKLCHoklch(41.83% 0.172 312.1)
XYZxyz(11.5170, 6.2232, 26.1804)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B228E #458E22
analogous
#35228E #6B228E #8E227B
triadic
#6B228E #8E6B22 #228E6B
tetradic
#6B228E #8E3522 #458E22 #227B8E
square
#6B228E #8E3522 #458E22 #227B8E
split-complementary
#6B228E #7B8E22 #228E35
monochromatic
#210A2B #46165D #6B228E #902EBF #AC54D6

Accessibility & contrast

On white

9.36
#6B228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6B228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B228E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B228E#FFFFFF#000000##FFFFFF
##6B228E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#12488C
Tritanopia (blue-blind)
#673B56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b228e;
/* rgb */ color: rgb(107, 34, 142);
/* oklch */ color: oklch(41.8% 0.172 312.1);
Tailwind
colors: {
  custom: {
    50: '#9965b0',
    500: '#6b228e',
    950: '#000000',
  },
}
SCSS
$custom: #6b228e;
$custom-light: #9965b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b228e",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 280.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41828,
    "c": 0.17189,
    "h": 312.1
  },
  "luminance": 0.06223
}

Semantic roles & 50–950 ramp

primary
#6B228E
secondary
#74BA52
accent
#E44378
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B228E

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

Preview Lab → · Contrast checker → · Palette generator →

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