#6B51EA#6B51EA

#6B51EA is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.2% C 0.219 H 284.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#6B51EA
RGBrgb(107, 81, 234)
HSLhsl(250, 78%, 62%)
HSVhsv(250, 65%, 92%)
CMYKcmyk(54.3%, 65.4%, 0%, 8.2%)
CIE-LABlab(45.57, 50.01, -73.91)
CIE-LCHlch(45.57, 89.24, 304.08°)
OKLaboklab(55.21% 0.0545 -0.2124)
OKLCHoklch(55.21% 0.219 284.4)
XYZxyz(23.8526, 14.9498, 79.4547)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B51EA #D0EA51
analogous
#5184EA #6B51EA #B851EA
triadic
#6B51EA #EA6B51 #51EA6B
tetradic
#6B51EA #EA5184 #D0EA51 #51EAB8
square
#6B51EA #EA5184 #D0EA51 #51EAB8
split-complementary
#6B51EA #EAB851 #84EA51
monochromatic
#2E15AC #3D1BE2 #6B51EA #9988F1 #C8BEF7

Accessibility & contrast

On white

5.26
#6B51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#6B51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B51EA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B51EA#FFFFFF#000000##FFFFFF
##6B51EA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b51ea;
/* rgb */ color: rgb(107, 81, 234);
/* oklch */ color: oklch(55.2% 0.219 284.4);
Tailwind
colors: {
  custom: {
    50: '#a084f2',
    500: '#6b51ea',
    950: '#000000',
  },
}
SCSS
$custom: #6b51ea;
$custom-light: #a084f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b51ea",
  "rgb": {
    "r": 107,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 250.196,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5521,
    "c": 0.21928,
    "h": 284.4
  },
  "luminance": 0.14951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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