#6D1F9B#6D1F9B

#6D1F9B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.188 H 308.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#6D1F9B
RGBrgb(109, 31, 155)
HSLhsl(278, 67%, 36%)
HSVhsv(278, 80%, 61%)
CMYKcmyk(29.7%, 80%, 0%, 39.2%)
CIE-LABlab(30.87, 53.66, -51.61)
CIE-LCHlch(30.87, 74.45, 316.11°)
OKLaboklab(42.84% 0.118 -0.1466)
OKLCHoklch(42.84% 0.188 308.8)
XYZxyz(12.7118, 6.5980, 31.6079)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1F9B #4D9B1F
analogous
#2F1F9B #6D1F9B #9B1F8B
triadic
#6D1F9B #9B6D1F #1F9B6D
tetradic
#6D1F9B #9B2F1F #4D9B1F #1F8B9B
square
#6D1F9B #9B2F1F #4D9B1F #1F8B9B
split-complementary
#6D1F9B #8B9B1F #1F9B2F
monochromatic
#250B35 #491568 #6D1F9B #9129CE #AC57DD

Accessibility & contrast

On white

9.05
#6D1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6D1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1F9B
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1F9B#FFFFFF#000000##FFFFFF
##6D1F9B1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#663F5D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6d1f9b;
/* rgb */ color: rgb(109, 31, 155);
/* oklch */ color: oklch(42.8% 0.188 308.8);
Tailwind
colors: {
  custom: {
    50: '#9c65b9',
    500: '#6d1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #6d1f9b;
$custom-light: #9c65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1f9b",
  "rgb": {
    "r": 109,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 277.742,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42841,
    "c": 0.18819,
    "h": 308.8
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#6D1F9B
secondary
#7DC155
accent
#EA3E7E
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6D1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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