#6B228C#6B228C

#6B228C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.170 H 312.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#6B228C
RGBrgb(107, 34, 140)
HSLhsl(281, 61%, 34%)
HSVhsv(281, 76%, 55%)
CMYKcmyk(23.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(29.82, 48.84, -44.11)
CIE-LCHlch(29.82, 65.81, 317.92°)
OKLaboklab(41.68% 0.1155 -0.1247)
OKLCHoklch(41.68% 0.17 312.8)
XYZxyz(11.3682, 6.1636, 25.3967)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B228C #438C22
analogous
#36228C #6B228C #8C2278
triadic
#6B228C #8C6B22 #228C6B
tetradic
#6B228C #8C3622 #438C22 #22788C
square
#6B228C #8C3622 #438C22 #22788C
split-complementary
#6B228C #788C22 #228C36
monochromatic
#200A2A #45165B #6B228C #912EBD #AD53D5

Accessibility & contrast

On white

9.41
#6B228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B228C
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B228C#FFFFFF#000000##FFFFFF
##6B228C1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#16488A
Tritanopia (blue-blind)
#673A55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b228c;
/* rgb */ color: rgb(107, 34, 140);
/* oklch */ color: oklch(41.7% 0.170 312.8);
Tailwind
colors: {
  custom: {
    50: '#9965ae',
    500: '#6b228c',
    950: '#000000',
  },
}
SCSS
$custom: #6b228c;
$custom-light: #9965ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b228c",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 281.321,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41677,
    "c": 0.16994,
    "h": 312.8
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#6B228C
secondary
#71B951
accent
#E44476
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B228C

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

Preview Lab → · Contrast checker → · Palette generator →

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