#6A51EF#6A51EF

#6A51EF is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.5% C 0.225 H 283.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#6A51EF
RGBrgb(106, 81, 239)
HSLhsl(249, 83%, 63%)
HSVhsv(249, 66%, 94%)
CMYKcmyk(55.6%, 66.1%, 0%, 6.3%)
CIE-LABlab(45.88, 51.32, -76.22)
CIE-LCHlch(45.88, 91.89, 303.95°)
OKLaboklab(55.54% 0.0525 -0.2192)
OKLCHoklch(55.54% 0.225 283.5)
XYZxyz(24.4615, 15.1795, 83.2856)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51EF #D6EF51
analogous
#5187EF #6A51EF #B951EF
triadic
#6A51EF #EF6A51 #51EF6A
tetradic
#6A51EF #EF5187 #D6EF51 #51EFB9
square
#6A51EF #EF5187 #D6EF51 #51EFB9
split-complementary
#6A51EF #EFB951 #87EF51
monochromatic
#2B11B5 #3A19EA #6A51EF #9A89F4 #CAC1F9

Accessibility & contrast

On white

5.20
#6A51EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#6A51EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51EF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51EF#FFFFFF#000000##FFFFFF
##6A51EF1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0067EC
Tritanopia (blue-blind)
#277999
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6a51ef;
/* rgb */ color: rgb(106, 81, 239);
/* oklch */ color: oklch(55.5% 0.225 283.5);
Tailwind
colors: {
  custom: {
    50: '#a184f5',
    500: '#6a51ef',
    950: '#000000',
  },
}
SCSS
$custom: #6a51ef;
$custom-light: #a184f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51ef",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 249.494,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55539,
    "c": 0.22543,
    "h": 283.5
  },
  "luminance": 0.15181
}

Semantic roles & 50–950 ramp

primary
#6A51EF
secondary
#E1EAB1
accent
#E006BD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6A51EF

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

Preview Lab → · Contrast checker → · Palette generator →

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