#6A2DBA#6A2DBA

#6A2DBA is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.205 H 297.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6A2DBA
RGBrgb(106, 45, 186)
HSLhsl(266, 61%, 45%)
HSVhsv(266, 76%, 73%)
CMYKcmyk(43%, 75.8%, 0%, 27.1%)
CIE-LABlab(34.97, 54.87, -63.53)
CIE-LCHlch(34.97, 83.95, 310.82°)
OKLaboklab(46.42% 0.094 -0.1818)
OKLCHoklch(46.42% 0.205 297.3)
XYZxyz(15.7429, 8.4858, 47.2533)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DBA #7DBA2D
analogous
#2D37BA #6A2DBA #B02DBA
triadic
#6A2DBA #BA6A2D #2DBA6A
tetradic
#6A2DBA #BA2D37 #7DBA2D #2DBAB0
square
#6A2DBA #BA2D37 #7DBA2D #2DBAB0
split-complementary
#6A2DBA #BAB02D #37BA2D
monochromatic
#321557 #4E2189 #6A2DBA #8950D5 #AA81E0

Accessibility & contrast

On white

7.79
#6A2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6A2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2DBA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DBA#FFFFFF#000000##FFFFFF
##6A2DBA1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#555372
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2dba;
/* rgb */ color: rgb(106, 45, 186);
/* oklch */ color: oklch(46.4% 0.205 297.3);
Tailwind
colors: {
  custom: {
    50: '#9c6cd0',
    500: '#6a2dba',
    950: '#000000',
  },
}
SCSS
$custom: #6a2dba;
$custom-light: #9c6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2dba",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 265.957,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46422,
    "c": 0.20468,
    "h": 297.3
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#6A2DBA
secondary
#A7C979
accent
#E4449F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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