#6A2AB7#6A2AB7

#6A2AB7 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.205 H 298.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#6A2AB7
RGBrgb(106, 42, 183)
HSLhsl(267, 63%, 44%)
HSVhsv(267, 77%, 72%)
CMYKcmyk(42.1%, 77%, 0%, 28.2%)
CIE-LABlab(34.27, 55.41, -62.91)
CIE-LCHlch(34.27, 83.83, 311.37°)
OKLaboklab(45.85% 0.0973 -0.18)
OKLCHoklch(45.85% 0.205 298.4)
XYZxyz(15.3169, 8.1388, 45.5545)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2AB7 #77B72A
analogous
#2A31B7 #6A2AB7 #B12AB7
triadic
#6A2AB7 #B76A2A #2AB76A
tetradic
#6A2AB7 #B72A31 #77B72A #2AB7B1
square
#6A2AB7 #B72A31 #77B72A #2AB7B1
split-complementary
#6A2AB7 #B7B12A #31B72A
monochromatic
#301353 #4D1F85 #6A2AB7 #8949D5 #A97BE1

Accessibility & contrast

On white

7.99
#6A2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6A2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2AB7
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2AB7#FFFFFF#000000##FFFFFF
##6A2AB71.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#575070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2ab7;
/* rgb */ color: rgb(106, 42, 183);
/* oklch */ color: oklch(45.8% 0.205 298.4);
Tailwind
colors: {
  custom: {
    50: '#9c6bce',
    500: '#6a2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ab7;
$custom-light: #9c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ab7",
  "rgb": {
    "r": 106,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 267.234,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.20459,
    "h": 298.4
  },
  "luminance": 0.08139
}

Semantic roles & 50–950 ramp

primary
#6A2AB7
secondary
#A2C974
accent
#E6429B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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