#6A1B98#6A1B98

#6A1B98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.188 H 308.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#6A1B98
RGBrgb(106, 27, 152)
HSLhsl(278, 70%, 35%)
HSVhsv(278, 82%, 60%)
CMYKcmyk(30.3%, 82.2%, 0%, 40.4%)
CIE-LABlab(29.70, 53.86, -51.70)
CIE-LCHlch(29.70, 74.66, 316.17°)
OKLaboklab(41.85% 0.1177 -0.147)
OKLCHoklch(41.85% 0.188 308.7)
XYZxyz(12.0021, 6.1152, 30.2478)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B98 #49981B
analogous
#2C1B98 #6A1B98 #981B87
triadic
#6A1B98 #986A1B #1B986A
tetradic
#6A1B98 #982C1B #49981B #1B8798
square
#6A1B98 #982C1B #49981B #1B8798
split-complementary
#6A1B98 #87981B #1B982C
monochromatic
#220930 #461264 #6A1B98 #8E24CC #AA4EE0

Accessibility & contrast

On white

9.45
#6A1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6A1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B98
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B98#FFFFFF#000000##FFFFFF
##6A1B981.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1b98;
/* rgb */ color: rgb(106, 27, 152);
/* oklch */ color: oklch(41.9% 0.188 308.7);
Tailwind
colors: {
  custom: {
    50: '#9a62b7',
    500: '#6a1b98',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b98;
$custom-light: #9a62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b98",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 277.92,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41853,
    "c": 0.18829,
    "h": 308.7
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#6A1B98
secondary
#78C24D
accent
#ED3B7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6A1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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