#6B287D#6B287D

#6B287D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.3% C 0.147 H 318.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#6B287D
RGBrgb(107, 40, 125)
HSLhsl(287, 52%, 32%)
HSVhsv(287, 68%, 49%)
CMYKcmyk(14.4%, 68%, 0%, 51%)
CIE-LABlab(29.72, 43.00, -34.90)
CIE-LCHlch(29.72, 55.38, 320.94°)
OKLaboklab(41.28% 0.1102 -0.0977)
OKLCHoklch(41.28% 0.147 318.4)
XYZxyz(10.5234, 6.1245, 20.0259)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B287D #3A7D28
analogous
#41287D #6B287D #7D2865
triadic
#6B287D #7D6B28 #287D6B
tetradic
#6B287D #7D4128 #3A7D28 #28657D
square
#6B287D #7D4128 #3A7D28 #28657D
split-complementary
#6B287D #657D28 #287D41
monochromatic
#1C0A20 #43194F #6B287D #9337AB #B156C9

Accessibility & contrast

On white

9.44
#6B287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6B287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B287D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B287D#FFFFFF#000000##FFFFFF
##6B287D1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b287d;
/* rgb */ color: rgb(107, 40, 125);
/* oklch */ color: oklch(41.3% 0.147 318.4);
Tailwind
colors: {
  custom: {
    50: '#9867a3',
    500: '#6b287d',
    950: '#000000',
  },
}
SCSS
$custom: #6b287d;
$custom-light: #9867a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b287d",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 287.294,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41281,
    "c": 0.14729,
    "h": 318.4
  },
  "luminance": 0.06124
}

Semantic roles & 50–950 ramp

primary
#6B287D
secondary
#66AE53
accent
#DB4D6B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B287D

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

Preview Lab → · Contrast checker → · Palette generator →

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