#6B188E#6B188E

#6B188E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 41.0% C 0.182 H 312.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#6B188E
RGBrgb(107, 24, 142)
HSLhsl(282, 71%, 33%)
HSVhsv(282, 83%, 56%)
CMYKcmyk(24.6%, 83.1%, 0%, 44.3%)
CIE-LABlab(28.73, 52.86, -47.12)
CIE-LCHlch(28.73, 70.82, 318.29°)
OKLaboklab(40.95% 0.1239 -0.1334)
OKLCHoklch(40.95% 0.182 312.9)
XYZxyz(11.2716, 5.7324, 26.0986)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B188E #3B8E18
analogous
#30188E #6B188E #8E1876
triadic
#6B188E #8E6B18 #188E6B
tetradic
#6B188E #8E3018 #3B8E18 #18768E
square
#6B188E #8E3018 #3B8E18 #18768E
split-complementary
#6B188E #768E18 #188E30
monochromatic
#1C0625 #440F5A #6B188E #9221C2 #B041DF

Accessibility & contrast

On white

9.78
#6B188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6B188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B188E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B188E#FFFFFF#000000##FFFFFF
##6B188E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#01458C
Tritanopia (blue-blind)
#673654
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b188e;
/* rgb */ color: rgb(107, 24, 142);
/* oklch */ color: oklch(41.0% 0.182 312.9);
Tailwind
colors: {
  custom: {
    50: '#9a61b0',
    500: '#6b188e',
    950: '#000000',
  },
}
SCSS
$custom: #6b188e;
$custom-light: #9a61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b188e",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 282.203,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40954,
    "c": 0.18208,
    "h": 312.9
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#6B188E
secondary
#67C042
accent
#EE3A6F
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B188E

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

Preview Lab → · Contrast checker → · Palette generator →

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