#6A1F99#6A1F99

#6A1F99 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.185 H 308.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#6A1F99
RGBrgb(106, 31, 153)
HSLhsl(277, 66%, 36%)
HSVhsv(277, 80%, 60%)
CMYKcmyk(30.7%, 79.7%, 0%, 40%)
CIE-LABlab(30.26, 52.68, -51.40)
CIE-LCHlch(30.26, 73.60, 315.71°)
OKLaboklab(42.27% 0.1143 -0.1461)
OKLCHoklch(42.27% 0.185 308)
XYZxyz(12.1824, 6.3442, 30.7136)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F99 #4E991F
analogous
#2D1F99 #6A1F99 #991F8B
triadic
#6A1F99 #996A1F #1F996A
tetradic
#6A1F99 #992D1F #4E991F #1F8B99
square
#6A1F99 #992D1F #4E991F #1F8B99
split-complementary
#6A1F99 #8B991F #1F992D
monochromatic
#230A33 #471566 #6A1F99 #8D29CC #A956DD

Accessibility & contrast

On white

9.26
#6A1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6A1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1F99
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1F99#FFFFFF#000000##FFFFFF
##6A1F991.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#623E5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1f99;
/* rgb */ color: rgb(106, 31, 153);
/* oklch */ color: oklch(42.3% 0.185 308.0);
Tailwind
colors: {
  custom: {
    50: '#9a64b8',
    500: '#6a1f99',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f99;
$custom-light: #9a64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f99",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 276.885,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42272,
    "c": 0.18546,
    "h": 308
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#6A1F99
secondary
#7DC054
accent
#E93F80
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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