#6B228F#6B228F

#6B228F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.173 H 311.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6B228F
RGBrgb(107, 34, 143)
HSLhsl(280, 62%, 35%)
HSVhsv(280, 76%, 56%)
CMYKcmyk(25.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(30.04, 49.50, -45.61)
CIE-LCHlch(30.04, 67.31, 317.34°)
OKLaboklab(41.9% 0.115 -0.1291)
OKLCHoklch(41.9% 0.173 311.7)
XYZxyz(11.5924, 6.2533, 26.5776)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B228F #468F22
analogous
#34228F #6B228F #8F227D
triadic
#6B228F #8F6B22 #228F6B
tetradic
#6B228F #8F3422 #468F22 #227D8F
square
#6B228F #8F3422 #468F22 #227D8F
split-complementary
#6B228F #7D8F22 #228F34
monochromatic
#210A2C #46165E #6B228F #902EC0 #AC55D7

Accessibility & contrast

On white

9.33
#6B228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6B228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B228F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B228F#FFFFFF#000000##FFFFFF
##6B228F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#10488D
Tritanopia (blue-blind)
#673B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b228f;
/* rgb */ color: rgb(107, 34, 143);
/* oklch */ color: oklch(41.9% 0.173 311.7);
Tailwind
colors: {
  custom: {
    50: '#9965b0',
    500: '#6b228f',
    950: '#000000',
  },
}
SCSS
$custom: #6b228f;
$custom-light: #9965b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b228f",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 280.183,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41904,
    "c": 0.17286,
    "h": 311.7
  },
  "luminance": 0.06253
}

Semantic roles & 50–950 ramp

primary
#6B228F
secondary
#75BA52
accent
#E54378
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B228F

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

Preview Lab → · Contrast checker → · Palette generator →

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