#6B398E#6B398E

#6B398E is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.7% C 0.140 H 309.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6B398E
RGBrgb(107, 57, 142)
HSLhsl(275, 43%, 39%)
HSVhsv(275, 60%, 56%)
CMYKcmyk(24.6%, 59.9%, 0%, 44.3%)
CIE-LABlab(33.99, 38.15, -38.64)
CIE-LCHlch(33.99, 54.30, 314.64°)
OKLaboklab(44.72% 0.088 -0.1087)
OKLCHoklch(44.72% 0.14 309)
XYZxyz(12.4081, 8.0052, 26.4775)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B398E #5C8E39
analogous
#41398E #6B398E #8E3987
triadic
#6B398E #8E6B39 #398E6B
tetradic
#6B398E #8E4139 #5C8E39 #39878E
square
#6B398E #8E4139 #5C8E39 #39878E
split-complementary
#6B398E #878E39 #398E41
monochromatic
#291637 #4A2762 #6B398E #8C4DB7 #A878C9

Accessibility & contrast

On white

8.07
#6B398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6B398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B398E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B398E#FFFFFF#000000##FFFFFF
##6B398E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E91
Deuteranopia (green-blind)
#2E518C
Tritanopia (blue-blind)
#66495E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6b398e;
/* rgb */ color: rgb(107, 57, 142);
/* oklch */ color: oklch(44.7% 0.140 309.0);
Tailwind
colors: {
  custom: {
    50: '#9872af',
    500: '#6b398e',
    950: '#000000',
  },
}
SCSS
$custom: #6b398e;
$custom-light: #9872af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b398e",
  "rgb": {
    "r": 107,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 275.294,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44723,
    "c": 0.13987,
    "h": 309
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B398E

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

Preview Lab → · Contrast checker → · Palette generator →

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