#6A2F8A#6A2F8A

#6A2F8A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.150 H 311.5°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#6A2F8A
RGBrgb(106, 47, 138)
HSLhsl(279, 49%, 36%)
HSVhsv(279, 66%, 54%)
CMYKcmyk(23.2%, 65.9%, 0%, 45.9%)
CIE-LABlab(31.65, 42.24, -39.93)
CIE-LCHlch(31.65, 58.12, 316.61°)
OKLaboklab(42.91% 0.0997 -0.1125)
OKLCHoklch(42.91% 0.15 311.5)
XYZxyz(11.5470, 6.9325, 24.7696)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2F8A #4F8A2F
analogous
#3D2F8A #6A2F8A #8A2F7D
triadic
#6A2F8A #8A6A2F #2F8A6A
tetradic
#6A2F8A #8A3D2F #4F8A2F #2F7D8A
square
#6A2F8A #8A3D2F #4F8A2F #2F7D8A
split-complementary
#6A2F8A #7D8A2F #2F8A3D
monochromatic
#24102F #471F5C #6A2F8A #8D3FB8 #A868CC

Accessibility & contrast

On white

8.80
#6A2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6A2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2F8A
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2F8A#FFFFFF#000000##FFFFFF
##6A2F8A1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#264C88
Tritanopia (blue-blind)
#664158
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a2f8a;
/* rgb */ color: rgb(106, 47, 138);
/* oklch */ color: oklch(42.9% 0.150 311.5);
Tailwind
colors: {
  custom: {
    50: '#986cad',
    500: '#6a2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a2f8a;
$custom-light: #986cad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2f8a",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 278.901,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.15033,
    "h": 311.5
  },
  "luminance": 0.06932
}

Semantic roles & 50–950 ramp

primary
#6A2F8A
secondary
#7EB362
accent
#D94F7F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6A2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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