#6B277D#6B277D

#6B277D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.2% C 0.149 H 318.5°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#6B277D
RGBrgb(107, 39, 125)
HSLhsl(287, 52%, 32%)
HSVhsv(287, 69%, 49%)
CMYKcmyk(14.4%, 68.8%, 0%, 51%)
CIE-LABlab(29.56, 43.47, -35.17)
CIE-LCHlch(29.56, 55.91, 321.02°)
OKLaboklab(41.16% 0.1114 -0.0985)
OKLCHoklch(41.16% 0.149 318.5)
XYZxyz(10.4901, 6.0580, 20.0148)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B277D #397D27
analogous
#40277D #6B277D #7D2764
triadic
#6B277D #7D6B27 #277D6B
tetradic
#6B277D #7D4027 #397D27 #27647D
square
#6B277D #7D4027 #397D27 #27647D
split-complementary
#6B277D #647D27 #277D40
monochromatic
#1B0A20 #43184E #6B277D #9336AC #B155CA

Accessibility & contrast

On white

9.50
#6B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6B277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B277D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B277D#FFFFFF#000000##FFFFFF
##6B277D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064180
Deuteranopia (green-blind)
#2C487B
Tritanopia (blue-blind)
#6B374E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b277d;
/* rgb */ color: rgb(107, 39, 125);
/* oklch */ color: oklch(41.2% 0.149 318.5);
Tailwind
colors: {
  custom: {
    50: '#9867a3',
    500: '#6b277d',
    950: '#000000',
  },
}
SCSS
$custom: #6b277d;
$custom-light: #9867a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b277d",
  "rgb": {
    "r": 107,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 287.442,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41161,
    "c": 0.1487,
    "h": 318.5
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#6B277D
secondary
#65AF51
accent
#DC4C6A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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