#6E2FA8#6E2FA8

#6E2FA8 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.184 H 303.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#6E2FA8
RGBrgb(110, 47, 168)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 66%)
CMYKcmyk(34.5%, 72%, 0%, 34.1%)
CIE-LABlab(34.35, 50.24, -53.83)
CIE-LCHlch(34.35, 73.63, 313.03°)
OKLaboklab(45.64% 0.1018 -0.1532)
OKLCHoklch(45.64% 0.184 303.6)
XYZxyz(14.5132, 8.1752, 37.8516)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2FA8 #69A82F
analogous
#322FA8 #6E2FA8 #A82FA5
triadic
#6E2FA8 #A86E2F #2FA86E
tetradic
#6E2FA8 #A8322F #69A82F #2FA5A8
square
#6E2FA8 #A8322F #69A82F #2FA5A8
split-complementary
#6E2FA8 #A5A82F #2FA832
monochromatic
#2F1448 #4F2278 #6E2FA8 #8D48CC #AB78D9

Accessibility & contrast

On white

7.97
#6E2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6E2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2FA8
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2FA8#FFFFFF#000000##FFFFFF
##6E2FA81.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#634C68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6e2fa8;
/* rgb */ color: rgb(110, 47, 168);
/* oklch */ color: oklch(45.6% 0.184 303.6);
Tailwind
colors: {
  custom: {
    50: '#9d6dc3',
    500: '#6e2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #6e2fa8;
$custom-light: #9d6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2fa8",
  "rgb": {
    "r": 110,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 271.24,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45636,
    "c": 0.18392,
    "h": 303.6
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#6E2FA8
secondary
#98C171
accent
#E04891
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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