#6A1F96#6A1F96

#6A1F96 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.183 H 309.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#6A1F96
RGBrgb(106, 31, 150)
HSLhsl(278, 66%, 35%)
HSVhsv(278, 79%, 59%)
CMYKcmyk(29.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(30.03, 52.01, -49.95)
CIE-LCHlch(30.03, 72.11, 316.16°)
OKLaboklab(42.03% 0.115 -0.1418)
OKLCHoklch(42.03% 0.183 309)
XYZxyz(11.9377, 6.2464, 29.4250)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F96 #4B961F
analogous
#2E1F96 #6A1F96 #961F86
triadic
#6A1F96 #966A1F #1F966A
tetradic
#6A1F96 #962E1F #4B961F #1F8696
square
#6A1F96 #962E1F #4B961F #1F8696
split-complementary
#6A1F96 #86961F #1F962E
monochromatic
#220A31 #461563 #6A1F96 #8E29C9 #A954DC

Accessibility & contrast

On white

9.34
#6A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6A1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F96
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F96#FFFFFF#000000##FFFFFF
##6A1F961.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#633D5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1f96;
/* rgb */ color: rgb(106, 31, 150);
/* oklch */ color: oklch(42.0% 0.183 309.0);
Tailwind
colors: {
  custom: {
    50: '#9964b6',
    500: '#6a1f96',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f96;
$custom-light: #9964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f96",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 277.815,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42029,
    "c": 0.18258,
    "h": 309
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#6A1F96
secondary
#7ABF52
accent
#E93F7E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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