#6A2DB1#6A2DB1

#6A2DB1 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.195 H 299.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#6A2DB1
RGBrgb(106, 45, 177)
HSLhsl(268, 59%, 44%)
HSVhsv(268, 75%, 69%)
CMYKcmyk(40.1%, 74.6%, 0%, 30.6%)
CIE-LABlab(34.22, 52.62, -59.43)
CIE-LCHlch(34.22, 79.38, 311.52°)
OKLaboklab(45.66% 0.0961 -0.1698)
OKLCHoklch(45.66% 0.195 299.5)
XYZxyz(14.8161, 8.1151, 42.3722)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2DB1 #74B12D
analogous
#2D32B1 #6A2DB1 #AC2DB1
triadic
#6A2DB1 #B16A2D #2DB16A
tetradic
#6A2DB1 #B12D32 #74B12D #2DB1AC
square
#6A2DB1 #B12D32 #74B12D #2DB1AC
split-complementary
#6A2DB1 #B1AC2D #32B12D
monochromatic
#30144F #4D2180 #6A2DB1 #884AD1 #A87BDD

Accessibility & contrast

On white

8.01
#6A2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6A2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2DB1
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2DB1#FFFFFF#000000##FFFFFF
##6A2DB11.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#594F6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a2db1;
/* rgb */ color: rgb(106, 45, 177);
/* oklch */ color: oklch(45.7% 0.195 299.5);
Tailwind
colors: {
  custom: {
    50: '#9b6cc9',
    500: '#6a2db1',
    950: '#000000',
  },
}
SCSS
$custom: #6a2db1;
$custom-light: #9b6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2db1",
  "rgb": {
    "r": 106,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 267.727,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45659,
    "c": 0.19512,
    "h": 299.5
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#6A2DB1
secondary
#A0C674
accent
#E3459A
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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