#6A2F7E#6A2F7E

#6A2F7E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.1% C 0.137 H 316.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#6A2F7E
RGBrgb(106, 47, 126)
HSLhsl(285, 46%, 34%)
HSVhsv(285, 63%, 49%)
CMYKcmyk(15.9%, 62.7%, 0%, 50.6%)
CIE-LABlab(30.89, 39.52, -33.68)
CIE-LCHlch(30.89, 51.92, 319.56°)
OKLaboklab(42.11% 0.0999 -0.0942)
OKLCHoklch(42.11% 0.137 316.7)
XYZxyz(10.7257, 6.6040, 20.4443)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2F7E #437E2F
analogous
#432F7E #6A2F7E #7E2F6B
triadic
#6A2F7E #7E6A2F #2F7E6A
tetradic
#6A2F7E #7E432F #437E2F #2F6B7E
square
#6A2F7E #7E432F #437E2F #2F6B7E
split-complementary
#6A2F7E #6B7E2F #2F7E43
monochromatic
#1F0E25 #451E51 #6A2F7E #8F40AB #AC63C5

Accessibility & contrast

On white

9.05
#6A2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6A2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2F7E
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2F7E#FFFFFF#000000##FFFFFF
##6A2F7E1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#693D52
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a2f7e;
/* rgb */ color: rgb(106, 47, 126);
/* oklch */ color: oklch(42.1% 0.137 316.7);
Tailwind
colors: {
  custom: {
    50: '#976ba4',
    500: '#6a2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #6a2f7e;
$custom-light: #976ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2f7e",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 284.81,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42111,
    "c": 0.13731,
    "h": 316.7
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#6A2F7E
secondary
#71AC5D
accent
#D55274
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E070F
muted
#7E7A7F

Preview Lab

Preview with #6A2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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