#6F227D#6F227D

#6F227D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.157 H 321.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#6F227D
RGBrgb(111, 34, 125)
HSLhsl(291, 57%, 31%)
HSVhsv(291, 73%, 49%)
CMYKcmyk(11.2%, 72.8%, 0%, 51%)
CIE-LABlab(29.42, 46.60, -35.35)
CIE-LCHlch(29.42, 58.49, 322.82°)
OKLaboklab(41.19% 0.1223 -0.0988)
OKLCHoklch(41.19% 0.157 321.1)
XYZxyz(10.8288, 6.0048, 19.9867)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F227D #307D22
analogous
#41227D #6F227D #7D225D
triadic
#6F227D #7D6F22 #227D6F
tetradic
#6F227D #7D4122 #307D22 #225D7D
square
#6F227D #7D4122 #307D22 #225D7D
split-complementary
#6F227D #5D7D22 #227D41
monochromatic
#1A081D #44154D #6F227D #9A2FAD #BA4BCE

Accessibility & contrast

On white

9.54
#6F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#6F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F227D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F227D#FFFFFF#000000##FFFFFF
##6F227D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#2C487B
Tritanopia (blue-blind)
#70334D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6f227d;
/* rgb */ color: rgb(111, 34, 125);
/* oklch */ color: oklch(41.2% 0.157 321.1);
Tailwind
colors: {
  custom: {
    50: '#9b65a3',
    500: '#6f227d',
    950: '#000000',
  },
}
SCSS
$custom: #6f227d;
$custom-light: #9b65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f227d",
  "rgb": {
    "r": 111,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 290.769,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41194,
    "c": 0.15726,
    "h": 321.1
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#6F227D
secondary
#5BB04B
accent
#E0475F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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