#6C2F97#6C2F97

#6C2F97 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.165 H 307.9°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#6C2F97
RGBrgb(108, 47, 151)
HSLhsl(275, 53%, 39%)
HSVhsv(275, 69%, 59%)
CMYKcmyk(28.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(32.82, 45.75, -46.02)
CIE-LCHlch(32.82, 64.89, 314.83°)
OKLaboklab(44.1% 0.1014 -0.1303)
OKLCHoklch(44.1% 0.165 307.9)
XYZxyz(12.7856, 7.4557, 30.0377)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2F97 #5A972F
analogous
#382F97 #6C2F97 #972F8E
triadic
#6C2F97 #976C2F #2F976C
tetradic
#6C2F97 #97382F #5A972F #2F8E97
square
#6C2F97 #97382F #5A972F #2F8E97
split-complementary
#6C2F97 #8E972F #2F9738
monochromatic
#29123A #4B2068 #6C2F97 #8D40C3 #A96ED2

Accessibility & contrast

On white

8.43
#6C2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6C2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2F97
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2F97#FFFFFF#000000##FFFFFF
##6C2F971.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#184E95
Tritanopia (blue-blind)
#65465F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6c2f97;
/* rgb */ color: rgb(108, 47, 151);
/* oklch */ color: oklch(44.1% 0.165 307.9);
Tailwind
colors: {
  custom: {
    50: '#9a6cb6',
    500: '#6c2f97',
    950: '#000000',
  },
}
SCSS
$custom: #6c2f97;
$custom-light: #9a6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2f97",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 275.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44097,
    "c": 0.16513,
    "h": 307.9
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#6C2F97
secondary
#8AB968
accent
#DC4C87
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6C2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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