#6A288B#6A288B

#6A288B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.161 H 312.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#6A288B
RGBrgb(106, 40, 139)
HSLhsl(280, 55%, 35%)
HSVhsv(280, 71%, 55%)
CMYKcmyk(23.7%, 71.2%, 0%, 45.5%)
CIE-LABlab(30.51, 45.83, -42.39)
CIE-LCHlch(30.51, 62.42, 317.23°)
OKLaboklab(42.11% 0.1079 -0.1197)
OKLCHoklch(42.11% 0.161 312)
XYZxyz(11.3620, 6.4461, 25.0668)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A288B #498B28
analogous
#39288B #6A288B #8B287A
triadic
#6A288B #8B6A28 #288B6A
tetradic
#6A288B #8B3928 #498B28 #287A8B
square
#6A288B #8B3928 #498B28 #287A8B
split-complementary
#6A288B #7A8B28 #288B39
monochromatic
#220D2C #461A5B #6A288B #8E36BB #AA5DD0

Accessibility & contrast

On white

9.17
#6A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6A288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A288B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A288B#FFFFFF#000000##FFFFFF
##6A288B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#1D4989
Tritanopia (blue-blind)
#663D56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a288b;
/* rgb */ color: rgb(106, 40, 139);
/* oklch */ color: oklch(42.1% 0.161 312.0);
Tailwind
colors: {
  custom: {
    50: '#9868ad',
    500: '#6a288b',
    950: '#000000',
  },
}
SCSS
$custom: #6a288b;
$custom-light: #9868ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a288b",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 280,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42114,
    "c": 0.16114,
    "h": 312
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#6A288B
secondary
#78B659
accent
#DF497B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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