#6F3198#6F3198

#6F3198 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.164 H 308.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#6F3198
RGBrgb(111, 49, 152)
HSLhsl(276, 51%, 39%)
HSVhsv(276, 68%, 60%)
CMYKcmyk(27%, 67.8%, 0%, 40.4%)
CIE-LABlab(33.65, 45.68, -45.27)
CIE-LCHlch(33.65, 64.31, 315.26°)
OKLaboklab(44.8% 0.1031 -0.128)
OKLCHoklch(44.8% 0.164 308.9)
XYZxyz(13.3202, 7.8434, 30.5119)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F3198 #5A9831
analogous
#3C3198 #6F3198 #98318E
triadic
#6F3198 #986F31 #31986F
tetradic
#6F3198 #983C31 #5A9831 #318E98
square
#6F3198 #983C31 #5A9831 #318E98
split-complementary
#6F3198 #8E9831 #31983C
monochromatic
#2B133B #4D226A #6F3198 #9044C3 #AB72D2

Accessibility & contrast

On white

8.18
#6F3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6F3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F3198
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F3198#FFFFFF#000000##FFFFFF
##6F31981.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#694760
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6f3198;
/* rgb */ color: rgb(111, 49, 152);
/* oklch */ color: oklch(44.8% 0.164 308.9);
Tailwind
colors: {
  custom: {
    50: '#9c6eb7',
    500: '#6f3198',
    950: '#000000',
  },
}
SCSS
$custom: #6f3198;
$custom-light: #9c6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#6f3198",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 276.117,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44803,
    "c": 0.16438,
    "h": 308.9
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#6F3198
secondary
#8AB96B
accent
#DB4D85
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0F0711
muted
#7E7A80

Preview Lab

Preview with #6F3198

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

Preview Lab → · Contrast checker → · Palette generator →

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