#6B118E#6B118E

#6B118E is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.5% C 0.188 H 313.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#6B118E
RGBrgb(107, 17, 142)
HSLhsl(283, 79%, 31%)
HSVhsv(283, 88%, 56%)
CMYKcmyk(24.6%, 88%, 0%, 44.3%)
CIE-LABlab(28.06, 54.81, -48.20)
CIE-LCHlch(28.06, 72.99, 318.67°)
OKLaboklab(40.49% 0.1286 -0.1366)
OKLCHoklch(40.49% 0.188 313.3)
XYZxyz(11.1455, 5.4801, 26.0566)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B118E #348E11
analogous
#2C118E #6B118E #8E1172
triadic
#6B118E #8E6B11 #118E6B
tetradic
#6B118E #8E2C11 #348E11 #11728E
square
#6B118E #8E2C11 #348E11 #11728E
split-complementary
#6B118E #728E11 #118E2C
monochromatic
#190421 #420A57 #6B118E #9418C5 #B433E7

Accessibility & contrast

On white

10.02
#6B118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6B118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B118E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B118E#FFFFFF#000000##FFFFFF
##6B118E1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#673353
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b118e;
/* rgb */ color: rgb(107, 17, 142);
/* oklch */ color: oklch(40.5% 0.188 313.3);
Tailwind
colors: {
  custom: {
    50: '#9a5fb0',
    500: '#6b118e',
    950: '#000000',
  },
}
SCSS
$custom: #6b118e;
$custom-light: #9a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b118e",
  "rgb": {
    "r": 107,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 283.2,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4049,
    "c": 0.1876,
    "h": 313.3
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#6B118E
secondary
#5FC238
accent
#F53369
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0F0511
muted
#7E7980

Preview Lab

Preview with #6B118E

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

Preview Lab → · Contrast checker → · Palette generator →

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