#6E2FA7#6E2FA7

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

Color values

HEX#6E2FA7
RGBrgb(110, 47, 167)
HSLhsl(272, 56%, 42%)
HSVhsv(272, 72%, 65%)
CMYKcmyk(34.1%, 71.9%, 0%, 34.5%)
CIE-LABlab(34.27, 50.00, -53.35)
CIE-LCHlch(34.27, 73.12, 313.14°)
OKLaboklab(45.56% 0.102 -0.1518)
OKLCHoklch(45.56% 0.183 303.9)
XYZxyz(14.4204, 8.1381, 37.3628)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2FA7 #68A72F
analogous
#322FA7 #6E2FA7 #A72FA4
triadic
#6E2FA7 #A76E2F #2FA76E
tetradic
#6E2FA7 #A7322F #68A72F #2FA4A7
square
#6E2FA7 #A7322F #68A72F #2FA4A7
split-complementary
#6E2FA7 #A4A72F #2FA732
monochromatic
#2F1447 #4F2277 #6E2FA7 #8D48CB #AB78D9

Accessibility & contrast

On white

7.99
#6E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6E2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2FA7
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2FA7#FFFFFF#000000##FFFFFF
##6E2FA71.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#634B68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6e2fa7;
/* rgb */ color: rgb(110, 47, 167);
/* oklch */ color: oklch(45.6% 0.183 303.9);
Tailwind
colors: {
  custom: {
    50: '#9d6dc2',
    500: '#6e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #6e2fa7;
$custom-light: #9d6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2fa7",
  "rgb": {
    "r": 110,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 271.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.18286,
    "h": 303.9
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#6E2FA7
secondary
#97C171
accent
#DF4890
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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