#6F2797#6F2797

#6F2797 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.176 H 310.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#6F2797
RGBrgb(111, 39, 151)
HSLhsl(279, 59%, 37%)
HSVhsv(279, 74%, 59%)
CMYKcmyk(26.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(31.95, 50.02, -47.40)
CIE-LCHlch(31.95, 68.91, 316.54°)
OKLaboklab(43.57% 0.1142 -0.1342)
OKLCHoklch(43.57% 0.176 310.4)
XYZxyz(12.8659, 7.0652, 29.9581)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F2797 #4F9727
analogous
#372797 #6F2797 #972787
triadic
#6F2797 #976F27 #27976F
tetradic
#6F2797 #973727 #4F9727 #278797
square
#6F2797 #973727 #4F9727 #278797
split-complementary
#6F2797 #879727 #279737
monochromatic
#270E36 #4B1A66 #6F2797 #9334C8 #AD62D6

Accessibility & contrast

On white

8.70
#6F2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6F2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F2797
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F2797#FFFFFF#000000##FFFFFF
##6F27971.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#104C95
Tritanopia (blue-blind)
#6A415D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6f2797;
/* rgb */ color: rgb(111, 39, 151);
/* oklch */ color: oklch(43.6% 0.176 310.4);
Tailwind
colors: {
  custom: {
    50: '#9c68b6',
    500: '#6f2797',
    950: '#000000',
  },
}
SCSS
$custom: #6f2797;
$custom-light: #9c68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6f2797",
  "rgb": {
    "r": 111,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 278.571,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43568,
    "c": 0.17623,
    "h": 310.4
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#6F2797
secondary
#7FBC5E
accent
#E2467E
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #6F2797

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

Preview Lab → · Contrast checker → · Palette generator →

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