#6A2DB4#6A2DB4

#6A2DB4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.198 H 298.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#6A2DB4
RGBrgb(106, 45, 180)
HSLhsl(267, 60%, 44%)
HSVhsv(267, 75%, 71%)
CMYKcmyk(41.1%, 75%, 0%, 29.4%)
CIE-LABlab(34.47, 53.37, -60.81)
CIE-LCHlch(34.47, 80.91, 311.27°)
OKLaboklab(45.91% 0.0954 -0.1738)
OKLCHoklch(45.91% 0.198 298.8)
XYZxyz(15.1184, 8.2360, 43.9644)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DB4 #77B42D
analogous
#2D34B4 #6A2DB4 #AE2DB4
triadic
#6A2DB4 #B46A2D #2DB46A
tetradic
#6A2DB4 #B42D34 #77B42D #2DB4AE
square
#6A2DB4 #B42D34 #77B42D #2DB4AE
split-complementary
#6A2DB4 #B4AE2D #34B42D
monochromatic
#301552 #4D2183 #6A2DB4 #894CD2 #A97DDE

Accessibility & contrast

On white

7.93
#6A2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6A2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2DB4
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DB4#FFFFFF#000000##FFFFFF
##6A2DB41.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#58506F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2db4;
/* rgb */ color: rgb(106, 45, 180);
/* oklch */ color: oklch(45.9% 0.198 298.8);
Tailwind
colors: {
  custom: {
    50: '#9b6ccb',
    500: '#6a2db4',
    950: '#000000',
  },
}
SCSS
$custom: #6a2db4;
$custom-light: #9b6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2db4",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 267.111,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45911,
    "c": 0.19832,
    "h": 298.8
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

primary
#6A2DB4
secondary
#A2C776
accent
#E3459C
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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