#6F228B#6F228B

#6F228B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.170 H 315.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#6F228B
RGBrgb(111, 34, 139)
HSLhsl(284, 61%, 34%)
HSVhsv(284, 76%, 55%)
CMYKcmyk(20.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(30.37, 49.46, -42.57)
CIE-LCHlch(30.37, 65.26, 319.28°)
OKLaboklab(42.17% 0.121 -0.12)
OKLCHoklch(42.17% 0.17 315.2)
XYZxyz(11.7870, 6.3881, 25.0332)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F228B #3E8B22
analogous
#3B228B #6F228B #8B2273
triadic
#6F228B #8B6F22 #228B6F
tetradic
#6F228B #8B3B22 #3E8B22 #22738B
square
#6F228B #8B3B22 #3E8B22 #22738B
split-complementary
#6F228B #738B22 #228B3B
monochromatic
#200A29 #48165A #6F228B #962EBC #B253D5

Accessibility & contrast

On white

9.22
#6F228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6F228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F228B
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F228B#FFFFFF#000000##FFFFFF
##6F228B1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#1E4989
Tritanopia (blue-blind)
#6D3955
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6f228b;
/* rgb */ color: rgb(111, 34, 139);
/* oklch */ color: oklch(42.2% 0.170 315.2);
Tailwind
colors: {
  custom: {
    50: '#9c65ad',
    500: '#6f228b',
    950: '#000000',
  },
}
SCSS
$custom: #6f228b;
$custom-light: #9c65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6f228b",
  "rgb": {
    "r": 111,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 284,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42171,
    "c": 0.17042,
    "h": 315.2
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#6F228B
secondary
#6CB850
accent
#E4446F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0610
muted
#7E7A7F

Preview Lab

Preview with #6F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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