#6A398E#6A398E

#6A398E is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.6% C 0.140 H 308.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#6A398E
RGBrgb(106, 57, 142)
HSLhsl(275, 43%, 39%)
HSVhsv(275, 60%, 56%)
CMYKcmyk(25.4%, 59.9%, 0%, 44.3%)
CIE-LABlab(33.87, 37.89, -38.85)
CIE-LCHlch(33.87, 54.27, 314.28°)
OKLaboklab(44.6% 0.0866 -0.1094)
OKLCHoklch(44.6% 0.14 308.4)
XYZxyz(12.2885, 7.9436, 26.4718)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A398E #5D8E39
analogous
#3F398E #6A398E #8E3988
triadic
#6A398E #8E6A39 #398E6A
tetradic
#6A398E #8E3F39 #5D8E39 #39888E
square
#6A398E #8E3F39 #5D8E39 #39888E
split-complementary
#6A398E #888E39 #398E3F
monochromatic
#291637 #492762 #6A398E #8A4DB7 #A778C9

Accessibility & contrast

On white

8.11
#6A398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6A398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A398E
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A398E#FFFFFF#000000##FFFFFF
##6A398E1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194E91
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#65495E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a398e;
/* rgb */ color: rgb(106, 57, 142);
/* oklch */ color: oklch(44.6% 0.140 308.4);
Tailwind
colors: {
  custom: {
    50: '#9772af',
    500: '#6a398e',
    950: '#000000',
  },
}
SCSS
$custom: #6a398e;
$custom-light: #9772af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a398e",
  "rgb": {
    "r": 106,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 274.588,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44601,
    "c": 0.13953,
    "h": 308.4
  },
  "luminance": 0.07943
}

Semantic roles & 50–950 ramp

primary
#6A398E
secondary
#8CB271
accent
#D2558A
background
#F9F7FA
surface
#F2EDF5
border
#CCC8CF
text
#0E0810
muted
#7E7B7F

Preview Lab

Preview with #6A398E

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

Preview Lab → · Contrast checker → · Palette generator →

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