#6E2BA6#6E2BA6

#6E2BA6 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.187 H 304.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6E2BA6
RGBrgb(110, 43, 166)
HSLhsl(273, 59%, 41%)
HSVhsv(273, 74%, 65%)
CMYKcmyk(33.7%, 74.1%, 0%, 34.9%)
CIE-LABlab(33.55, 51.56, -53.91)
CIE-LCHlch(33.55, 74.60, 313.73°)
OKLaboklab(45.03% 0.1061 -0.1534)
OKLCHoklch(45.03% 0.187 304.7)
XYZxyz(14.1757, 7.7960, 36.8270)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2BA6 #63A62B
analogous
#302BA6 #6E2BA6 #A62BA0
triadic
#6E2BA6 #A66E2B #2BA66E
tetradic
#6E2BA6 #A6302B #63A62B #2BA0A6
square
#6E2BA6 #A6302B #63A62B #2BA0A6
split-complementary
#6E2BA6 #A0A62B #2BA630
monochromatic
#2E1245 #4E1E75 #6E2BA6 #8D41CE #AA71DA

Accessibility & contrast

On white

8.21
#6E2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6E2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2BA6
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2BA6#FFFFFF#000000##FFFFFF
##6E2BA61.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#634966
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6e2ba6;
/* rgb */ color: rgb(110, 43, 166);
/* oklch */ color: oklch(45.0% 0.187 304.7);
Tailwind
colors: {
  custom: {
    50: '#9d6bc1',
    500: '#6e2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #6e2ba6;
$custom-light: #9d6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2ba6",
  "rgb": {
    "r": 110,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 272.683,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45028,
    "c": 0.18654,
    "h": 304.7
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#6E2BA6
secondary
#93C16B
accent
#E2468D
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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