#6F339D#6F339D

#6F339D is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.167 H 306.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#6F339D
RGBrgb(111, 51, 157)
HSLhsl(274, 51%, 41%)
HSVhsv(274, 68%, 62%)
CMYKcmyk(29.3%, 67.5%, 0%, 38.4%)
CIE-LABlab(34.36, 45.88, -47.17)
CIE-LCHlch(34.36, 65.80, 314.21°)
OKLaboklab(45.42% 0.1003 -0.1336)
OKLCHoklch(45.42% 0.167 306.9)
XYZxyz(13.8239, 8.1816, 32.7427)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F339D #619D33
analogous
#3A339D #6F339D #9D3396
triadic
#6F339D #9D6F33 #339D6F
tetradic
#6F339D #9D3A33 #619D33 #33969D
square
#6F339D #9D3A33 #619D33 #33969D
split-complementary
#6F339D #969D33 #339D3A
monochromatic
#2E1541 #4E246F #6F339D #8F49C4 #AB77D3

Accessibility & contrast

On white

7.97
#6F339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6F339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F339D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F339D#FFFFFF#000000##FFFFFF
##6F339D1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#19519B
Tritanopia (blue-blind)
#674A64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6f339d;
/* rgb */ color: rgb(111, 51, 157);
/* oklch */ color: oklch(45.4% 0.167 306.9);
Tailwind
colors: {
  custom: {
    50: '#9c6fbb',
    500: '#6f339d',
    950: '#000000',
  },
}
SCSS
$custom: #6f339d;
$custom-light: #9c6fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f339d",
  "rgb": {
    "r": 111,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 273.962,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.16709,
    "h": 306.9
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#6F339D
secondary
#91BB70
accent
#DA4D8B
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0F0812
muted
#7E7B81

Preview Lab

Preview with #6F339D

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

Preview Lab → · Contrast checker → · Palette generator →

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