#6E1F98#6E1F98

#6E1F98 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.186 H 310.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6E1F98
RGBrgb(110, 31, 152)
HSLhsl(279, 66%, 36%)
HSVhsv(279, 80%, 60%)
CMYKcmyk(27.6%, 79.6%, 0%, 40.4%)
CIE-LABlab(30.79, 53.18, -49.91)
CIE-LCHlch(30.79, 72.93, 316.82°)
OKLaboklab(42.74% 0.1201 -0.1416)
OKLCHoklch(42.74% 0.186 310.3)
XYZxyz(12.5868, 6.5623, 30.3033)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E1F98 #49981F
analogous
#321F98 #6E1F98 #981F85
triadic
#6E1F98 #986E1F #1F986E
tetradic
#6E1F98 #98321F #49981F #1F8598
square
#6E1F98 #98321F #49981F #1F8598
split-complementary
#6E1F98 #85981F #1F9832
monochromatic
#240A32 #491565 #6E1F98 #9329CB #AD55DC

Accessibility & contrast

On white

9.08
#6E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6E1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E1F98
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E1F98#FFFFFF#000000##FFFFFF
##6E1F981.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#683D5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6e1f98;
/* rgb */ color: rgb(110, 31, 152);
/* oklch */ color: oklch(42.7% 0.186 310.3);
Tailwind
colors: {
  custom: {
    50: '#9c65b7',
    500: '#6e1f98',
    950: '#000000',
  },
}
SCSS
$custom: #6e1f98;
$custom-light: #9c65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6e1f98",
  "rgb": {
    "r": 110,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 279.174,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42738,
    "c": 0.18563,
    "h": 310.3
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#6E1F98
secondary
#79C053
accent
#E93F7A
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6E1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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