#6F51EC#6F51EC

#6F51EC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.7% C 0.221 H 285.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#6F51EC
RGBrgb(111, 81, 236)
HSLhsl(252, 80%, 62%)
HSVhsv(252, 66%, 93%)
CMYKcmyk(53%, 65.7%, 0%, 7.5%)
CIE-LABlab(46.07, 51.25, -74.20)
CIE-LCHlch(46.07, 90.18, 304.63°)
OKLaboklab(55.71% 0.0595 -0.2131)
OKLCHoklch(55.71% 0.221 285.6)
XYZxyz(24.6338, 15.3192, 80.9995)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F51EC #CEEC51
analogous
#5181EC #6F51EC #BD51EC
triadic
#6F51EC #EC6F51 #51EC6F
tetradic
#6F51EC #EC5181 #CEEC51 #51ECBD
square
#6F51EC #EC5181 #CEEC51 #51ECBD
split-complementary
#6F51EC #ECBD51 #81EC51
monochromatic
#3113AF #411AE6 #6F51EC #9D88F2 #CABFF8

Accessibility & contrast

On white

5.17
#6F51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#6F51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F51EC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F51EC#FFFFFF#000000##FFFFFF
##6F51EC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#3B7898
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6f51ec;
/* rgb */ color: rgb(111, 81, 236);
/* oklch */ color: oklch(55.7% 0.221 285.6);
Tailwind
colors: {
  custom: {
    50: '#a384f3',
    500: '#6f51ec',
    950: '#000000',
  },
}
SCSS
$custom: #6f51ec;
$custom-light: #a384f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f51ec",
  "rgb": {
    "r": 111,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 251.613,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55706,
    "c": 0.22129,
    "h": 285.6
  },
  "luminance": 0.1532
}

Semantic roles & 50–950 ramp

primary
#6F51EC
secondary
#DEE9B0
accent
#DD09B4
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6F51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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