#6A188E#6A188E

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

Color values

HEX#6A188E
RGBrgb(106, 24, 142)
HSLhsl(282, 71%, 33%)
HSVhsv(282, 83%, 56%)
CMYKcmyk(25.4%, 83.1%, 0%, 44.3%)
CIE-LABlab(28.57, 52.68, -47.39)
CIE-LCHlch(28.57, 70.86, 318.03°)
OKLaboklab(40.81% 0.1225 -0.1343)
OKLCHoklch(40.81% 0.182 312.4)
XYZxyz(11.1521, 5.6708, 26.0930)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A188E #3C8E18
analogous
#2F188E #6A188E #8E1877
triadic
#6A188E #8E6A18 #188E6A
tetradic
#6A188E #8E2F18 #3C8E18 #18778E
square
#6A188E #8E2F18 #3C8E18 #18778E
split-complementary
#6A188E #778E18 #188E2F
monochromatic
#1C0625 #430F5A #6A188E #9121C2 #AF41DF

Accessibility & contrast

On white

9.84
#6A188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6A188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A188E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A188E#FFFFFF#000000##FFFFFF
##6A188E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#663654
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a188e;
/* rgb */ color: rgb(106, 24, 142);
/* oklch */ color: oklch(40.8% 0.182 312.4);
Tailwind
colors: {
  custom: {
    50: '#9961b0',
    500: '#6a188e',
    950: '#000000',
  },
}
SCSS
$custom: #6a188e;
$custom-light: #9961b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a188e",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 281.695,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4081,
    "c": 0.18176,
    "h": 312.4
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#6A188E
secondary
#68C042
accent
#EE3A71
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A188E

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

Preview Lab → · Contrast checker → · Palette generator →

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