#6B228B#6B228B

#6B228B is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.169 H 313.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#6B228B
RGBrgb(107, 34, 139)
HSLhsl(282, 61%, 34%)
HSVhsv(282, 76%, 55%)
CMYKcmyk(23%, 75.5%, 0%, 45.5%)
CIE-LABlab(29.75, 48.63, -43.61)
CIE-LCHlch(29.75, 65.32, 318.11°)
OKLaboklab(41.6% 0.1157 -0.1232)
OKLCHoklch(41.6% 0.169 313.2)
XYZxyz(11.2948, 6.1343, 25.0101)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B228B #428B22
analogous
#37228B #6B228B #8B2277
triadic
#6B228B #8B6B22 #228B6B
tetradic
#6B228B #8B3722 #428B22 #22778B
square
#6B228B #8B3722 #428B22 #22778B
split-complementary
#6B228B #778B22 #228B37
monochromatic
#1F0A29 #45165A #6B228B #912EBC #AD53D5

Accessibility & contrast

On white

9.43
#6B228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6B228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B228B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B228B#FFFFFF#000000##FFFFFF
##6B228B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#184889
Tritanopia (blue-blind)
#683955
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b228b;
/* rgb */ color: rgb(107, 34, 139);
/* oklch */ color: oklch(41.6% 0.169 313.2);
Tailwind
colors: {
  custom: {
    50: '#9965ad',
    500: '#6b228b',
    950: '#000000',
  },
}
SCSS
$custom: #6b228b;
$custom-light: #9965ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b228b",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 281.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41602,
    "c": 0.16897,
    "h": 313.2
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

primary
#6B228B
secondary
#70B850
accent
#E44475
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B228B

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

Preview Lab → · Contrast checker → · Palette generator →

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