#6A1D98#6A1D98

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

Color values

HEX#6A1D98
RGBrgb(106, 29, 152)
HSLhsl(278, 68%, 35%)
HSVhsv(278, 81%, 60%)
CMYKcmyk(30.3%, 80.9%, 0%, 40.4%)
CIE-LABlab(29.94, 53.18, -51.32)
CIE-LCHlch(29.94, 73.90, 316.02°)
OKLaboklab(42.02% 0.1161 -0.1458)
OKLCHoklch(42.02% 0.186 308.5)
XYZxyz(12.0495, 6.2101, 30.2636)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D98 #4B981D
analogous
#2C1D98 #6A1D98 #981D88
triadic
#6A1D98 #986A1D #1D986A
tetradic
#6A1D98 #982C1D #4B981D #1D8898
square
#6A1D98 #982C1D #4B981D #1D8898
split-complementary
#6A1D98 #88981D #1D982C
monochromatic
#220931 #461365 #6A1D98 #8E27CB #A952DE

Accessibility & contrast

On white

9.37
#6A1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1D98
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D98#FFFFFF#000000##FFFFFF
##6A1D981.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#633D5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1d98;
/* rgb */ color: rgb(106, 29, 152);
/* oklch */ color: oklch(42.0% 0.186 308.5);
Tailwind
colors: {
  custom: {
    50: '#9a63b7',
    500: '#6a1d98',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d98;
$custom-light: #9a63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d98",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 277.561,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42017,
    "c": 0.18644,
    "h": 308.5
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#6A1D98
secondary
#7AC150
accent
#EB3D7E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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