#6A1BA7#6A1BA7

#6A1BA7 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.1% C 0.202 H 304.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#6A1BA7
RGBrgb(106, 27, 167)
HSLhsl(274, 72%, 38%)
HSVhsv(274, 84%, 65%)
CMYKcmyk(36.5%, 83.8%, 0%, 34.5%)
CIE-LABlab(30.97, 57.19, -58.75)
CIE-LCHlch(30.97, 81.99, 314.23°)
OKLaboklab(43.13% 0.1133 -0.1677)
OKLCHoklch(43.13% 0.202 304.1)
XYZxyz(13.3092, 6.6381, 37.1318)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1BA7 #58A71B
analogous
#241BA7 #6A1BA7 #A71B9E
triadic
#6A1BA7 #A76A1B #1BA76A
tetradic
#6A1BA7 #A7241B #58A71B #1B9EA7
square
#6A1BA7 #A7241B #58A71B #1B9EA7
split-complementary
#6A1BA7 #9EA71B #1BA724
monochromatic
#270A3E #491272 #6A1BA7 #8B24DC #A758E4

Accessibility & contrast

On white

9.02
#6A1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6A1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1BA7
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1BA7#FFFFFF#000000##FFFFFF
##6A1BA71.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#5E4363
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a1ba7;
/* rgb */ color: rgb(106, 27, 167);
/* oklch */ color: oklch(43.1% 0.202 304.1);
Tailwind
colors: {
  custom: {
    50: '#9b63c2',
    500: '#6a1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #6a1ba7;
$custom-light: #9b63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1ba7",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 273.857,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43125,
    "c": 0.20236,
    "h": 304.1
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#6A1BA7
secondary
#88C856
accent
#EF3988
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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