#6A2DB9#6A2DB9

#6A2DB9 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.204 H 297.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6A2DB9
RGBrgb(106, 45, 185)
HSLhsl(266, 61%, 45%)
HSVhsv(266, 76%, 73%)
CMYKcmyk(42.7%, 75.7%, 0%, 27.5%)
CIE-LABlab(34.89, 54.62, -63.08)
CIE-LCHlch(34.89, 83.44, 310.89°)
OKLaboklab(46.34% 0.0942 -0.1805)
OKLCHoklch(46.34% 0.204 297.6)
XYZxyz(15.6369, 8.4434, 46.6954)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DB9 #7CB92D
analogous
#2D36B9 #6A2DB9 #B02DB9
triadic
#6A2DB9 #B96A2D #2DB96A
tetradic
#6A2DB9 #B92D36 #7CB92D #2DB9B0
square
#6A2DB9 #B92D36 #7CB92D #2DB9B0
split-complementary
#6A2DB9 #B9B02D #36B92D
monochromatic
#321557 #4E2188 #6A2DB9 #894FD4 #AA80E0

Accessibility & contrast

On white

7.81
#6A2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6A2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2DB9
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DB9#FFFFFF#000000##FFFFFF
##6A2DB91.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#565271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2db9;
/* rgb */ color: rgb(106, 45, 185);
/* oklch */ color: oklch(46.3% 0.204 297.6);
Tailwind
colors: {
  custom: {
    50: '#9c6ccf',
    500: '#6a2db9',
    950: '#000000',
  },
}
SCSS
$custom: #6a2db9;
$custom-light: #9c6ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2db9",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 266.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46336,
    "c": 0.20362,
    "h": 297.6
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#6A2DB9
secondary
#A6C979
accent
#E4449E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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