#6B288F#6B288F

#6B288F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.166 H 311.1°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#6B288F
RGBrgb(107, 40, 143)
HSLhsl(279, 56%, 36%)
HSVhsv(279, 72%, 56%)
CMYKcmyk(25.2%, 72%, 0%, 43.9%)
CIE-LABlab(30.94, 46.95, -44.16)
CIE-LCHlch(30.94, 64.45, 316.76°)
OKLaboklab(42.54% 0.1088 -0.1248)
OKLCHoklch(42.54% 0.166 311.1)
XYZxyz(11.7792, 6.6268, 26.6399)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B288F #4C8F28
analogous
#37288F #6B288F #8F287F
triadic
#6B288F #8F6B28 #288F6B
tetradic
#6B288F #8F3728 #4C8F28 #287F8F
square
#6B288F #8F3728 #4C8F28 #287F8F
split-complementary
#6B288F #7F8F28 #288F37
monochromatic
#230D2F #471B5F #6B288F #8F35BF #AA5FD2

Accessibility & contrast

On white

9.03
#6B288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6B288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B288F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B288F#FFFFFF#000000##FFFFFF
##6B288F1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#194A8D
Tritanopia (blue-blind)
#663E59
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b288f;
/* rgb */ color: rgb(107, 40, 143);
/* oklch */ color: oklch(42.5% 0.166 311.1);
Tailwind
colors: {
  custom: {
    50: '#9968b0',
    500: '#6b288f',
    950: '#000000',
  },
}
SCSS
$custom: #6b288f;
$custom-light: #9968b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b288f",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 279.029,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.1656,
    "h": 311.1
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#6B288F
secondary
#7BB85B
accent
#E0487D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B288F

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

Preview Lab → · Contrast checker → · Palette generator →

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