#6E2FA6#6E2FA6

#6E2FA6 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.182 H 304.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#6E2FA6
RGBrgb(110, 47, 166)
HSLhsl(272, 56%, 42%)
HSVhsv(272, 72%, 65%)
CMYKcmyk(33.7%, 71.7%, 0%, 34.9%)
CIE-LABlab(34.19, 49.76, -52.87)
CIE-LCHlch(34.19, 72.60, 313.26°)
OKLaboklab(45.48% 0.1021 -0.1504)
OKLCHoklch(45.48% 0.182 304.2)
XYZxyz(14.3283, 8.1012, 36.8778)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2FA6 #67A62F
analogous
#332FA6 #6E2FA6 #A62FA3
triadic
#6E2FA6 #A66E2F #2FA66E
tetradic
#6E2FA6 #A6332F #67A62F #2FA3A6
square
#6E2FA6 #A6332F #67A62F #2FA3A6
split-complementary
#6E2FA6 #A3A62F #2FA633
monochromatic
#2F1447 #4E2176 #6E2FA6 #8D47CB #AB77D8

Accessibility & contrast

On white

8.01
#6E2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6E2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2FA6
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2FA6#FFFFFF#000000##FFFFFF
##6E2FA61.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#634B67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6e2fa6;
/* rgb */ color: rgb(110, 47, 166);
/* oklch */ color: oklch(45.5% 0.182 304.2);
Tailwind
colors: {
  custom: {
    50: '#9c6dc1',
    500: '#6e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #6e2fa6;
$custom-light: #9c6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2fa6",
  "rgb": {
    "r": 110,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 271.765,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4548,
    "c": 0.18179,
    "h": 304.2
  },
  "luminance": 0.08101
}

Semantic roles & 50–950 ramp

primary
#6E2FA6
secondary
#96C170
accent
#DF498F
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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