#6B186E#6B186E

#6B186E is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.6% C 0.154 H 326.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#6B186E
RGBrgb(107, 24, 110)
HSLhsl(298, 64%, 26%)
HSVhsv(298, 78%, 43%)
CMYKcmyk(2.7%, 78.2%, 0%, 56.9%)
CIE-LABlab(26.46, 46.57, -30.56)
CIE-LCHlch(26.46, 55.71, 326.73°)
OKLaboklab(38.64% 0.1284 -0.0849)
OKLCHoklch(38.64% 0.154 326.5)
XYZxyz(9.2043, 4.9055, 15.2109)
Luminance0.0491 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B186E #1B6E18
analogous
#40186E #6B186E #6E1846
triadic
#6B186E #6E6B18 #186E6B
tetradic
#6B186E #6E4018 #1B6E18 #18466E
square
#6B186E #6E4018 #1B6E18 #18466E
split-complementary
#6B186E #466E18 #186E40
monochromatic
#180519 #3A0D3C #6B186E #9C23A0 #CC2FD2

Accessibility & contrast

On white

10.60
#6B186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#6B186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B186E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B186E#FFFFFF#000000##FFFFFF
##6B186E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003870
Deuteranopia (green-blind)
#2D426C
Tritanopia (blue-blind)
#6E2742
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6b186e;
/* rgb */ color: rgb(107, 24, 110);
/* oklch */ color: oklch(38.6% 0.154 326.5);
Tailwind
colors: {
  custom: {
    50: '#995f98',
    500: '#6b186e',
    950: '#000000',
  },
}
SCSS
$custom: #6b186e;
$custom-light: #995f98;
$custom-dark: #000000;
JSON
{
  "hex": "#6b186e",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 297.907,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.38638,
    "c": 0.15394,
    "h": 326.5
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#6B186E
secondary
#42A43E
accent
#E74146
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6B186E

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

Preview Lab → · Contrast checker → · Palette generator →

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