#6A398D#6A398D

#6A398D is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.5% C 0.138 H 308.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6A398D
RGBrgb(106, 57, 141)
HSLhsl(275, 42%, 39%)
HSVhsv(275, 60%, 55%)
CMYKcmyk(24.8%, 59.6%, 0%, 44.7%)
CIE-LABlab(33.80, 37.65, -38.34)
CIE-LCHlch(33.80, 53.73, 314.48°)
OKLaboklab(44.54% 0.0866 -0.1079)
OKLCHoklch(44.54% 0.138 308.7)
XYZxyz(12.2138, 7.9137, 26.0782)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A398D #5C8D39
analogous
#40398D #6A398D #8D3986
triadic
#6A398D #8D6A39 #398D6A
tetradic
#6A398D #8D4039 #5C8D39 #39868D
square
#6A398D #8D4039 #5C8D39 #39868D
split-complementary
#6A398D #868D39 #398D40
monochromatic
#281636 #492761 #6A398D #8A4CB7 #A778C8

Accessibility & contrast

On white

8.13
#6A398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6A398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A398D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A398D#FFFFFF#000000##FFFFFF
##6A398D1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D90
Deuteranopia (green-blind)
#2E508B
Tritanopia (blue-blind)
#65495D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a398d;
/* rgb */ color: rgb(106, 57, 141);
/* oklch */ color: oklch(44.5% 0.138 308.7);
Tailwind
colors: {
  custom: {
    50: '#9772af',
    500: '#6a398d',
    950: '#000000',
  },
}
SCSS
$custom: #6a398d;
$custom-light: #9772af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a398d",
  "rgb": {
    "r": 106,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 275,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44535,
    "c": 0.13835,
    "h": 308.7
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#6A398D
secondary
#8BB270
accent
#D2568A
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0E0810
muted
#7E7B7F

Preview Lab

Preview with #6A398D

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

Preview Lab → · Contrast checker → · Palette generator →

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