#6A51F2#6A51F2

#6A51F2 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.8% C 0.229 H 283.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#6A51F2
RGBrgb(106, 81, 242)
HSLhsl(249, 86%, 63%)
HSVhsv(249, 67%, 95%)
CMYKcmyk(56.2%, 66.5%, 0%, 5.1%)
CIE-LABlab(46.12, 52.20, -77.51)
CIE-LCHlch(46.12, 93.45, 303.96°)
OKLaboklab(55.79% 0.0521 -0.223)
OKLCHoklch(55.79% 0.229 283.2)
XYZxyz(24.9084, 15.3583, 85.6391)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A51F2 #D9F251
analogous
#5188F2 #6A51F2 #BA51F2
triadic
#6A51F2 #F26A51 #51F26A
tetradic
#6A51F2 #F25188 #D9F251 #51F2BA
square
#6A51F2 #F25188 #D9F251 #51F2BA
split-complementary
#6A51F2 #F2BA51 #88F251
monochromatic
#290EBB #3918EE #6A51F2 #9B8AF6 #CCC3FB

Accessibility & contrast

On white

5.16
#6A51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#6A51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A51F2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A51F2#FFFFFF#000000##FFFFFF
##6A51F21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F7
Deuteranopia (green-blind)
#0068EF
Tritanopia (blue-blind)
#227B9B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6a51f2;
/* rgb */ color: rgb(106, 81, 242);
/* oklch */ color: oklch(55.8% 0.229 283.2);
Tailwind
colors: {
  custom: {
    50: '#a184f8',
    500: '#6a51f2',
    950: '#000000',
  },
}
SCSS
$custom: #6a51f2;
$custom-light: #a184f8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a51f2",
  "rgb": {
    "r": 106,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 249.317,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55788,
    "c": 0.22901,
    "h": 283.2
  },
  "luminance": 0.1536
}

Semantic roles & 50–950 ramp

primary
#6A51F2
secondary
#E3ECB3
accent
#E303C0
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6A51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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