#6A188F#6A188F

#6A188F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.183 H 312.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#6A188F
RGBrgb(106, 24, 143)
HSLhsl(281, 71%, 33%)
HSVhsv(281, 83%, 56%)
CMYKcmyk(25.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(28.64, 52.90, -47.88)
CIE-LCHlch(28.64, 71.35, 317.85°)
OKLaboklab(40.89% 0.1223 -0.1357)
OKLCHoklch(40.89% 0.183 312)
XYZxyz(11.2275, 5.7009, 26.4902)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A188F #3D8F18
analogous
#2F188F #6A188F #8F1878
triadic
#6A188F #8F6A18 #188F6A
tetradic
#6A188F #8F2F18 #3D8F18 #18788F
square
#6A188F #8F2F18 #3D8F18 #18788F
split-complementary
#6A188F #788F18 #188F2F
monochromatic
#1C0626 #430F5B #6A188F #9121C3 #AE42DF

Accessibility & contrast

On white

9.81
#6A188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6A188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A188F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A188F#FFFFFF#000000##FFFFFF
##6A188F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#653755
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a188f;
/* rgb */ color: rgb(106, 24, 143);
/* oklch */ color: oklch(40.9% 0.183 312.0);
Tailwind
colors: {
  custom: {
    50: '#9961b1',
    500: '#6a188f',
    950: '#000000',
  },
}
SCSS
$custom: #6a188f;
$custom-light: #9961b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a188f",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 281.345,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40889,
    "c": 0.18267,
    "h": 312
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#6A188F
secondary
#6AC043
accent
#EE3A72
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #6A188F

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

Preview Lab → · Contrast checker → · Palette generator →

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