#7051EB#7051EB

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

Color values

HEX#7051EB
RGBrgb(112, 81, 235)
HSLhsl(252, 79%, 62%)
HSVhsv(252, 66%, 92%)
CMYKcmyk(52.3%, 65.5%, 0%, 7.8%)
CIE-LABlab(46.08, 51.13, -73.62)
CIE-LCHlch(46.08, 89.63, 304.78°)
OKLaboklab(55.71% 0.0609 -0.2114)
OKLCHoklch(55.71% 0.22 286.1)
XYZxyz(24.6154, 15.3265, 80.2424)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7051EB #CCEB51
analogous
#517FEB #7051EB #BD51EB
triadic
#7051EB #EB7051 #51EB70
tetradic
#7051EB #EB517F #CCEB51 #51EBBD
square
#7051EB #EB517F #CCEB51 #51EBBD
split-complementary
#7051EB #EBBD51 #7FEB51
monochromatic
#3314AE #431AE5 #7051EB #9D88F1 #CABFF8

Accessibility & contrast

On white

5.17
#7051EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7051EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7051EB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7051EB#FFFFFF#000000##FFFFFF
##7051EB1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#3E7897
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7051eb;
/* rgb */ color: rgb(112, 81, 235);
/* oklch */ color: oklch(55.7% 0.220 286.1);
Tailwind
colors: {
  custom: {
    50: '#a384f3',
    500: '#7051eb',
    950: '#000000',
  },
}
SCSS
$custom: #7051eb;
$custom-light: #a384f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7051eb",
  "rgb": {
    "r": 112,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 252.078,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5571,
    "c": 0.22001,
    "h": 286.1
  },
  "luminance": 0.15328
}

Semantic roles & 50–950 ramp

primary
#7051EB
secondary
#DDE8B0
accent
#DC0AB1
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7051EB

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

Preview Lab → · Contrast checker → · Palette generator →

#7051EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva