#6A2F87#6A2F87

#6A2F87 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.7% C 0.147 H 312.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#6A2F87
RGBrgb(106, 47, 135)
HSLhsl(280, 48%, 36%)
HSVhsv(280, 65%, 53%)
CMYKcmyk(21.5%, 65.2%, 0%, 47.1%)
CIE-LABlab(31.46, 41.55, -38.39)
CIE-LCHlch(31.46, 56.57, 317.26°)
OKLaboklab(42.71% 0.0998 -0.108)
OKLCHoklch(42.71% 0.147 312.7)
XYZxyz(11.3328, 6.8468, 23.6415)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2F87 #4C872F
analogous
#3E2F87 #6A2F87 #872F78
triadic
#6A2F87 #876A2F #2F876A
tetradic
#6A2F87 #873E2F #4C872F #2F7887
square
#6A2F87 #873E2F #4C872F #2F7887
split-complementary
#6A2F87 #78872F #2F873E
monochromatic
#230F2C #461F5A #6A2F87 #8E3FB4 #A966CA

Accessibility & contrast

On white

8.86
#6A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6A2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2F87
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2F87#FFFFFF#000000##FFFFFF
##6A2F871.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07478A
Deuteranopia (green-blind)
#294B85
Tritanopia (blue-blind)
#674056
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a2f87;
/* rgb */ color: rgb(106, 47, 135);
/* oklch */ color: oklch(42.7% 0.147 312.7);
Tailwind
colors: {
  custom: {
    50: '#976caa',
    500: '#6a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #6a2f87;
$custom-light: #976caa;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2f87",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 280.227,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42706,
    "c": 0.14706,
    "h": 312.7
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#6A2F87
secondary
#7BB161
accent
#D8507D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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