#6E2FA5#6E2FA5

#6E2FA5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.181 H 304.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#6E2FA5
RGBrgb(110, 47, 165)
HSLhsl(272, 56%, 42%)
HSVhsv(272, 72%, 65%)
CMYKcmyk(33.3%, 71.5%, 0%, 35.3%)
CIE-LABlab(34.12, 49.52, -52.39)
CIE-LCHlch(34.12, 72.09, 313.38°)
OKLaboklab(45.4% 0.1023 -0.149)
OKLCHoklch(45.4% 0.181 304.5)
XYZxyz(14.2369, 8.0647, 36.3966)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2FA5 #66A52F
analogous
#332FA5 #6E2FA5 #A52FA1
triadic
#6E2FA5 #A56E2F #2FA56E
tetradic
#6E2FA5 #A5332F #66A52F #2FA1A5
square
#6E2FA5 #A5332F #66A52F #2FA1A5
split-complementary
#6E2FA5 #A1A52F #2FA533
monochromatic
#2E1446 #4E2175 #6E2FA5 #8D47CB #AB76D8

Accessibility & contrast

On white

8.04
#6E2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6E2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2FA5
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2FA5#FFFFFF#000000##FFFFFF
##6E2FA51.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#644B67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6e2fa5;
/* rgb */ color: rgb(110, 47, 165);
/* oklch */ color: oklch(45.4% 0.181 304.5);
Tailwind
colors: {
  custom: {
    50: '#9c6dc0',
    500: '#6e2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #6e2fa5;
$custom-light: #9c6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2fa5",
  "rgb": {
    "r": 110,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 272.034,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45403,
    "c": 0.18072,
    "h": 304.5
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#6E2FA5
secondary
#95C070
accent
#DF498F
background
#FAF6FB
surface
#F3ECF7
border
#CDC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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