#6B287F#6B287F

#6B287F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.4% C 0.149 H 317.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#6B287F
RGBrgb(107, 40, 127)
HSLhsl(286, 52%, 33%)
HSVhsv(286, 69%, 50%)
CMYKcmyk(15.7%, 68.5%, 0%, 50.2%)
CIE-LABlab(29.85, 43.43, -35.95)
CIE-LCHlch(29.85, 56.38, 320.38°)
OKLaboklab(41.41% 0.1101 -0.1008)
OKLCHoklch(41.41% 0.149 317.5)
XYZxyz(10.6524, 6.1761, 20.7056)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B287F #3C7F28
analogous
#3F287F #6B287F #7F2867
triadic
#6B287F #7F6B28 #287F6B
tetradic
#6B287F #7F3F28 #3C7F28 #28677F
square
#6B287F #7F3F28 #3C7F28 #28677F
split-complementary
#6B287F #677F28 #287F3F
monochromatic
#1D0B22 #441950 #6B287F #9237AE #B057CA

Accessibility & contrast

On white

9.40
#6B287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6B287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B287F
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B287F#FFFFFF#000000##FFFFFF
##6B287F1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044282
Deuteranopia (green-blind)
#2B487D
Tritanopia (blue-blind)
#6A3850
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b287f;
/* rgb */ color: rgb(107, 40, 127);
/* oklch */ color: oklch(41.4% 0.149 317.5);
Tailwind
colors: {
  custom: {
    50: '#9867a4',
    500: '#6b287f',
    950: '#000000',
  },
}
SCSS
$custom: #6b287f;
$custom-light: #9867a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b287f",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 286.207,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.41414,
    "c": 0.1493,
    "h": 317.5
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#6B287F
secondary
#69AF54
accent
#DC4C6D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B287F

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

Preview Lab → · Contrast checker → · Palette generator →

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