#6A2DB7#6A2DB7

#6A2DB7 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.202 H 298.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#6A2DB7
RGBrgb(106, 45, 183)
HSLhsl(267, 61%, 45%)
HSVhsv(267, 75%, 72%)
CMYKcmyk(42.1%, 75.4%, 0%, 28.2%)
CIE-LABlab(34.72, 54.12, -62.18)
CIE-LCHlch(34.72, 82.43, 311.04°)
OKLaboklab(46.17% 0.0947 -0.1778)
OKLCHoklch(46.17% 0.202 298)
XYZxyz(15.4273, 8.3596, 45.5913)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DB7 #7AB72D
analogous
#2D35B7 #6A2DB7 #AF2DB7
triadic
#6A2DB7 #B76A2D #2DB76A
tetradic
#6A2DB7 #B72D35 #7AB72D #2DB7AF
square
#6A2DB7 #B72D35 #7AB72D #2DB7AF
split-complementary
#6A2DB7 #B7AF2D #35B72D
monochromatic
#311555 #4E2186 #6A2DB7 #894ED3 #AA7FDF

Accessibility & contrast

On white

7.86
#6A2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6A2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2DB7
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DB7#FFFFFF#000000##FFFFFF
##6A2DB71.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#575170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2db7;
/* rgb */ color: rgb(106, 45, 183);
/* oklch */ color: oklch(46.2% 0.202 298.0);
Tailwind
colors: {
  custom: {
    50: '#9c6cce',
    500: '#6a2db7',
    950: '#000000',
  },
}
SCSS
$custom: #6a2db7;
$custom-light: #9c6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2db7",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 266.522,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46165,
    "c": 0.2015,
    "h": 298
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

primary
#6A2DB7
secondary
#A5C878
accent
#E4449D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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