#6A2EB8#6A2EB8

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

Color values

HEX#6A2EB8
RGBrgb(106, 46, 184)
HSLhsl(266, 60%, 45%)
HSVhsv(266, 75%, 72%)
CMYKcmyk(42.4%, 75%, 0%, 27.8%)
CIE-LABlab(34.96, 53.93, -62.38)
CIE-LCHlch(34.96, 82.45, 310.84°)
OKLaboklab(46.36% 0.0936 -0.1784)
OKLCHoklch(46.36% 0.202 297.7)
XYZxyz(15.5703, 8.4786, 46.1543)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EB8 #7CB82E
analogous
#2E37B8 #6A2EB8 #AF2EB8
triadic
#6A2EB8 #B86A2E #2EB86A
tetradic
#6A2EB8 #B82E37 #7CB82E #2EB8AF
square
#6A2EB8 #B82E37 #7CB82E #2EB8AF
split-complementary
#6A2EB8 #B8AF2E #37B82E
monochromatic
#321656 #4E2287 #6A2EB8 #8950D3 #AA81DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A2EB8#FFFFFF#000000##FFFFFF
##6A2EB81.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)
#0053BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#565271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2eb8;
/* rgb */ color: rgb(106, 46, 184);
/* oklch */ color: oklch(46.4% 0.202 297.7);
Tailwind
colors: {
  custom: {
    50: '#9c6dce',
    500: '#6a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #6a2eb8;
$custom-light: #9c6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2eb8",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 266.087,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46359,
    "c": 0.2015,
    "h": 297.7
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#6A2EB8
secondary
#A6C879
accent
#E3459E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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