#6C51F2#6C51F2

#6C51F2 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.229 H 283.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#6C51F2
RGBrgb(108, 81, 242)
HSLhsl(250, 86%, 63%)
HSVhsv(250, 67%, 95%)
CMYKcmyk(55.4%, 66.5%, 0%, 5.1%)
CIE-LABlab(46.29, 52.51, -77.23)
CIE-LCHlch(46.29, 93.39, 304.21°)
OKLaboklab(55.95% 0.0547 -0.2221)
OKLCHoklch(55.95% 0.229 283.8)
XYZxyz(25.1489, 15.4823, 85.6504)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C51F2 #D7F251
analogous
#5186F2 #6C51F2 #BC51F2
triadic
#6C51F2 #F26C51 #51F26C
tetradic
#6C51F2 #F25186 #D7F251 #51F2BC
square
#6C51F2 #F25186 #D7F251 #51F2BC
split-complementary
#6C51F2 #F2BC51 #86F251
monochromatic
#2B0EBB #3C18EE #6C51F2 #9C8AF6 #CCC3FB

Accessibility & contrast

On white

5.13
#6C51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#6C51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C51F2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C51F2#FFFFFF#000000##FFFFFF
##6C51F21.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#0068EF
Tritanopia (blue-blind)
#2A7A9B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6c51f2;
/* rgb */ color: rgb(108, 81, 242);
/* oklch */ color: oklch(55.9% 0.229 283.8);
Tailwind
colors: {
  custom: {
    50: '#a284f7',
    500: '#6c51f2',
    950: '#000000',
  },
}
SCSS
$custom: #6c51f2;
$custom-light: #a284f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c51f2",
  "rgb": {
    "r": 108,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 250.062,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55949,
    "c": 0.22876,
    "h": 283.8
  },
  "luminance": 0.15484
}

Semantic roles & 50–950 ramp

primary
#6C51F2
secondary
#E2ECB3
accent
#E303BD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6C51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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