#6A51EA#6A51EA

#6A51EA is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.1% C 0.219 H 284.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#6A51EA
RGBrgb(106, 81, 234)
HSLhsl(250, 78%, 62%)
HSVhsv(250, 65%, 92%)
CMYKcmyk(54.7%, 65.4%, 0%, 8.2%)
CIE-LABlab(45.48, 49.85, -74.05)
CIE-LCHlch(45.48, 89.27, 303.95°)
OKLaboklab(55.13% 0.0532 -0.2129)
OKLCHoklch(55.13% 0.219 284)
XYZxyz(23.7330, 14.8881, 79.4491)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51EA #D1EA51
analogous
#5185EA #6A51EA #B751EA
triadic
#6A51EA #EA6A51 #51EA6A
tetradic
#6A51EA #EA5185 #D1EA51 #51EAB7
square
#6A51EA #EA5185 #D1EA51 #51EAB7
split-complementary
#6A51EA #EAB751 #85EA51
monochromatic
#2D15AC #3C1BE2 #6A51EA #9988F1 #C8BEF7

Accessibility & contrast

On white

5.28
#6A51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#6A51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51EA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51EA#FFFFFF#000000##FFFFFF
##6A51EA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0067E7
Tritanopia (blue-blind)
#2E7897
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6a51ea;
/* rgb */ color: rgb(106, 81, 234);
/* oklch */ color: oklch(55.1% 0.219 284.0);
Tailwind
colors: {
  custom: {
    50: '#a083f2',
    500: '#6a51ea',
    950: '#000000',
  },
}
SCSS
$custom: #6a51ea;
$custom-light: #a083f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51ea",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 249.804,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.55128,
    "c": 0.2194,
    "h": 284
  },
  "luminance": 0.1489
}

Semantic roles & 50–950 ramp

primary
#6A51EA
secondary
#DEE8AF
accent
#DB0BB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6A51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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