#6F2271#6F2271

#6F2271 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.4% C 0.146 H 326.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#6F2271
RGBrgb(111, 34, 113)
HSLhsl(298, 54%, 29%)
HSVhsv(298, 70%, 44%)
CMYKcmyk(1.8%, 69.9%, 0%, 55.7%)
CIE-LABlab(28.69, 44.28, -28.91)
CIE-LCHlch(28.69, 52.88, 326.86°)
OKLaboklab(40.43% 0.1225 -0.0801)
OKLCHoklch(40.43% 0.146 326.8)
XYZxyz(10.1080, 5.7165, 16.1906)
Luminance0.0572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F2271 #247122
analogous
#482271 #6F2271 #71224C
triadic
#6F2271 #716F22 #22716F
tetradic
#6F2271 #714822 #247122 #224C71
square
#6F2271 #714822 #247122 #224C71
split-complementary
#6F2271 #4C7122 #227148
monochromatic
#170718 #411442 #6F2271 #9D30A0 #C446C7

Accessibility & contrast

On white

9.80
#6F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6F2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F2271
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F2271#FFFFFF#000000##FFFFFF
##6F22711.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#34476F
Tritanopia (blue-blind)
#722E46
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6f2271;
/* rgb */ color: rgb(111, 34, 113);
/* oklch */ color: oklch(40.4% 0.146 326.8);
Tailwind
colors: {
  custom: {
    50: '#9b649a',
    500: '#6f2271',
    950: '#000000',
  },
}
SCSS
$custom: #6f2271;
$custom-light: #9b649a;
$custom-dark: #000000;
JSON
{
  "hex": "#6f2271",
  "rgb": {
    "r": 111,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 298.481,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.40426,
    "c": 0.14634,
    "h": 326.8
  },
  "luminance": 0.05716
}

Semantic roles & 50–950 ramp

primary
#6F2271
secondary
#4DA44A
accent
#DD4B4E
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #6F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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