#6F228D#6F228D

#6F228D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.172 H 314.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#6F228D
RGBrgb(111, 34, 141)
HSLhsl(283, 61%, 34%)
HSVhsv(283, 76%, 55%)
CMYKcmyk(21.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(30.51, 49.89, -43.58)
CIE-LCHlch(30.51, 66.24, 318.86°)
OKLaboklab(42.32% 0.1207 -0.123)
OKLCHoklch(42.32% 0.172 314.5)
XYZxyz(11.9345, 6.4471, 25.8099)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F228D #408D22
analogous
#3A228D #6F228D #8D2276
triadic
#6F228D #8D6F22 #228D6F
tetradic
#6F228D #8D3A22 #408D22 #22768D
square
#6F228D #8D3A22 #408D22 #22768D
split-complementary
#6F228D #768D22 #228D3A
monochromatic
#210A2A #48165C #6F228D #962EBE #B154D6

Accessibility & contrast

On white

9.17
#6F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6F228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F228D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F228D#FFFFFF#000000##FFFFFF
##6F228D1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#1C4A8B
Tritanopia (blue-blind)
#6C3A56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6f228d;
/* rgb */ color: rgb(111, 34, 141);
/* oklch */ color: oklch(42.3% 0.172 314.5);
Tailwind
colors: {
  custom: {
    50: '#9c66af',
    500: '#6f228d',
    950: '#000000',
  },
}
SCSS
$custom: #6f228d;
$custom-light: #9c66af;
$custom-dark: #000000;
JSON
{
  "hex": "#6f228d",
  "rgb": {
    "r": 111,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 283.178,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42317,
    "c": 0.17232,
    "h": 314.5
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#6F228D
secondary
#6FB951
accent
#E44471
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0610
muted
#7E7A7F

Preview Lab

Preview with #6F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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