#6E2FAA#6E2FAA

#6E2FAA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.186 H 303.0°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#6E2FAA
RGBrgb(110, 47, 170)
HSLhsl(271, 57%, 43%)
HSVhsv(271, 72%, 67%)
CMYKcmyk(35.3%, 72.4%, 0%, 33.3%)
CIE-LABlab(34.50, 50.73, -54.77)
CIE-LCHlch(34.50, 74.66, 312.80°)
OKLaboklab(45.79% 0.1014 -0.156)
OKLCHoklch(45.79% 0.186 303)
XYZxyz(14.7009, 8.2503, 38.8404)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2FAA #6BAA2F
analogous
#312FAA #6E2FAA #AA2FA8
triadic
#6E2FAA #AA6E2F #2FAA6E
tetradic
#6E2FAA #AA312F #6BAA2F #2FA8AA
square
#6E2FAA #AA312F #6BAA2F #2FA8AA
split-complementary
#6E2FAA #A8AA2F #2FAA31
monochromatic
#30144A #4F227A #6E2FAA #8D49CD #AB79DA

Accessibility & contrast

On white

7.92
#6E2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6E2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2FAA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2FAA#FFFFFF#000000##FFFFFF
##6E2FAA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0051A7
Tritanopia (blue-blind)
#624D69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6e2faa;
/* rgb */ color: rgb(110, 47, 170);
/* oklch */ color: oklch(45.8% 0.186 303.0);
Tailwind
colors: {
  custom: {
    50: '#9d6dc4',
    500: '#6e2faa',
    950: '#000000',
  },
}
SCSS
$custom: #6e2faa;
$custom-light: #9d6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2faa",
  "rgb": {
    "r": 110,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 270.732,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45793,
    "c": 0.18605,
    "h": 303
  },
  "luminance": 0.0825
}

Semantic roles & 50–950 ramp

primary
#6E2FAA
secondary
#99C272
accent
#E04892
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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