#6B118F#6B118F

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

Color values

HEX#6B118F
RGBrgb(107, 17, 143)
HSLhsl(283, 79%, 31%)
HSVhsv(283, 88%, 56%)
CMYKcmyk(25.2%, 88.1%, 0%, 43.9%)
CIE-LABlab(28.14, 55.02, -48.69)
CIE-LCHlch(28.14, 73.47, 318.49°)
OKLaboklab(40.57% 0.1284 -0.138)
OKLCHoklch(40.57% 0.188 312.9)
XYZxyz(11.2209, 5.5102, 26.4538)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B118F #358F11
analogous
#2C118F #6B118F #8F1174
triadic
#6B118F #8F6B11 #118F6B
tetradic
#6B118F #8F2C11 #358F11 #11748F
square
#6B118F #8F2C11 #358F11 #11748F
split-complementary
#6B118F #748F11 #118F2C
monochromatic
#190422 #420A58 #6B118F #9418C6 #B434E7

Accessibility & contrast

On white

9.99
#6B118F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B118F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B118F#FFFFFF#000000##FFFFFF
##6B118F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#673454
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b118f;
/* rgb */ color: rgb(107, 17, 143);
/* oklch */ color: oklch(40.6% 0.188 312.9);
Tailwind
colors: {
  custom: {
    50: '#9a5fb1',
    500: '#6b118f',
    950: '#000000',
  },
}
SCSS
$custom: #6b118f;
$custom-light: #9a5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b118f",
  "rgb": {
    "r": 107,
    "g": 17,
    "b": 143
  },
  "hsl": {
    "h": 282.857,
    "s": 78.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40571,
    "c": 0.18847,
    "h": 312.9
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#6B118F
secondary
#60C338
accent
#F5336A
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0F0511
muted
#7E7980

Preview Lab

Preview with #6B118F

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

Preview Lab → · Contrast checker → · Palette generator →

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