#6A51E2#6A51E2

#6A51E2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.5% C 0.210 H 284.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#6A51E2
RGBrgb(106, 81, 226)
HSLhsl(250, 71%, 60%)
HSVhsv(250, 64%, 89%)
CMYKcmyk(53.1%, 64.2%, 0%, 11.4%)
CIE-LABlab(44.86, 47.50, -70.55)
CIE-LCHlch(44.86, 85.04, 303.95°)
OKLaboklab(54.48% 0.0541 -0.2026)
OKLCHoklch(54.48% 0.21 284.9)
XYZxyz(22.6096, 14.4388, 73.5324)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51E2 #C9E251
analogous
#5180E2 #6A51E2 #B351E2
triadic
#6A51E2 #E26A51 #51E26A
tetradic
#6A51E2 #E25180 #C9E251 #51E2B3
square
#6A51E2 #E25180 #C9E251 #51E2B3
split-complementary
#6A51E2 #E2B351 #80E251
monochromatic
#311A9E #4123D3 #6A51E2 #9785EB #C4BAF3

Accessibility & contrast

On white

5.40
#6A51E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#6A51E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51E2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51E2#FFFFFF#000000##FFFFFF
##6A51E21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#377592
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #6a51e2;
/* rgb */ color: rgb(106, 81, 226);
/* oklch */ color: oklch(54.5% 0.210 284.9);
Tailwind
colors: {
  custom: {
    50: '#9f83ec',
    500: '#6a51e2',
    950: '#000000',
  },
}
SCSS
$custom: #6a51e2;
$custom-light: #9f83ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51e2",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 250.345,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54481,
    "c": 0.20965,
    "h": 284.9
  },
  "luminance": 0.1444
}

Semantic roles & 50–950 ramp

primary
#6A51E2
secondary
#DAE3AC
accent
#D312B2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #6A51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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