#6A2DB8#6A2DB8

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

Color values

HEX#6A2DB8
RGBrgb(106, 45, 184)
HSLhsl(266, 61%, 45%)
HSVhsv(266, 76%, 72%)
CMYKcmyk(42.4%, 75.5%, 0%, 27.8%)
CIE-LABlab(34.81, 54.37, -62.63)
CIE-LCHlch(34.81, 82.94, 310.96°)
OKLaboklab(46.25% 0.0945 -0.1792)
OKLCHoklch(46.25% 0.203 297.8)
XYZxyz(15.5317, 8.4014, 46.1414)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DB8 #7BB82D
analogous
#2D35B8 #6A2DB8 #B02DB8
triadic
#6A2DB8 #B86A2D #2DB86A
tetradic
#6A2DB8 #B82D35 #7BB82D #2DB8B0
square
#6A2DB8 #B82D35 #7BB82D #2DB8B0
split-complementary
#6A2DB8 #B8B02D #35B82D
monochromatic
#311556 #4E2187 #6A2DB8 #894ED4 #AA80E0

Accessibility & contrast

On white

7.83
#6A2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6A2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2DB8
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DB8#FFFFFF#000000##FFFFFF
##6A2DB81.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a2db8;
/* rgb */ color: rgb(106, 45, 184);
/* oklch */ color: oklch(46.3% 0.203 297.8);
Tailwind
colors: {
  custom: {
    50: '#9c6cce',
    500: '#6a2db8',
    950: '#000000',
  },
}
SCSS
$custom: #6a2db8;
$custom-light: #9c6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2db8",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 266.331,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4625,
    "c": 0.20256,
    "h": 297.8
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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