#6D2FA7#6D2FA7

#6D2FA7 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.183 H 303.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#6D2FA7
RGBrgb(109, 47, 167)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(34.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(34.14, 49.80, -53.57)
CIE-LCHlch(34.14, 73.14, 312.91°)
OKLaboklab(45.44% 0.1005 -0.1525)
OKLCHoklch(45.44% 0.183 303.4)
XYZxyz(14.2966, 8.0743, 37.3570)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2FA7 #69A72F
analogous
#312FA7 #6D2FA7 #A72FA5
triadic
#6D2FA7 #A76D2F #2FA76D
tetradic
#6D2FA7 #A7312F #69A72F #2FA5A7
square
#6D2FA7 #A7312F #69A72F #2FA5A7
split-complementary
#6D2FA7 #A5A72F #2FA731
monochromatic
#2F1447 #4E2277 #6D2FA7 #8C48CB #AA78D9

Accessibility & contrast

On white

8.03
#6D2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6D2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D2FA7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D2FA7#FFFFFF#000000##FFFFFF
##6D2FA71.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#614C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d2fa7;
/* rgb */ color: rgb(109, 47, 167);
/* oklch */ color: oklch(45.4% 0.183 303.4);
Tailwind
colors: {
  custom: {
    50: '#9c6dc2',
    500: '#6d2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #6d2fa7;
$custom-light: #9c6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2fa7",
  "rgb": {
    "r": 109,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 271,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45436,
    "c": 0.18263,
    "h": 303.4
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#6D2FA7
secondary
#98C171
accent
#DF4891
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6D2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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