#6A1F94#6A1F94

#6A1F94 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.181 H 309.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#6A1F94
RGBrgb(106, 31, 148)
HSLhsl(278, 65%, 35%)
HSVhsv(278, 79%, 58%)
CMYKcmyk(28.4%, 79.1%, 0%, 42%)
CIE-LABlab(29.87, 51.57, -48.98)
CIE-LCHlch(29.87, 71.12, 316.48°)
OKLaboklab(41.87% 0.1154 -0.139)
OKLCHoklch(41.87% 0.181 309.7)
XYZxyz(11.7781, 6.1825, 28.5841)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F94 #49941F
analogous
#301F94 #6A1F94 #941F83
triadic
#6A1F94 #946A1F #1F946A
tetradic
#6A1F94 #94301F #49941F #1F8394
square
#6A1F94 #94301F #49941F #1F8394
split-complementary
#6A1F94 #83941F #1F9430
monochromatic
#220A2F #461461 #6A1F94 #8E2AC7 #AA53DB

Accessibility & contrast

On white

9.39
#6A1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6A1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F94
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F94#FFFFFF#000000##FFFFFF
##6A1F941.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#643C59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1f94;
/* rgb */ color: rgb(106, 31, 148);
/* oklch */ color: oklch(41.9% 0.181 309.7);
Tailwind
colors: {
  custom: {
    50: '#9964b4',
    500: '#6a1f94',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f94;
$custom-light: #9964b4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f94",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 278.462,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.18065,
    "h": 309.7
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#6A1F94
secondary
#78BE51
accent
#E83F7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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