#7251EB#7251EB

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

Color values

HEX#7251EB
RGBrgb(114, 81, 235)
HSLhsl(253, 79%, 62%)
HSVhsv(253, 66%, 92%)
CMYKcmyk(51.5%, 65.5%, 0%, 7.8%)
CIE-LABlab(46.26, 51.47, -73.32)
CIE-LCHlch(46.26, 89.58, 305.07°)
OKLaboklab(55.88% 0.0636 -0.2105)
OKLCHoklch(55.88% 0.22 286.8)
XYZxyz(24.8728, 15.4592, 80.2545)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7251EB #CAEB51
analogous
#517DEB #7251EB #BF51EB
triadic
#7251EB #EB7251 #51EB72
tetradic
#7251EB #EB517D #CAEB51 #51EBBF
square
#7251EB #EB517D #CAEB51 #51EBBF
split-complementary
#7251EB #EBBF51 #7DEB51
monochromatic
#3514AE #461AE5 #7251EB #9E88F1 #CBBFF8

Accessibility & contrast

On white

5.13
#7251EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7251EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7251EB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7251EB#FFFFFF#000000##FFFFFF
##7251EB1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#437797
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7251eb;
/* rgb */ color: rgb(114, 81, 235);
/* oklch */ color: oklch(55.9% 0.220 286.8);
Tailwind
colors: {
  custom: {
    50: '#a484f2',
    500: '#7251eb',
    950: '#000000',
  },
}
SCSS
$custom: #7251eb;
$custom-light: #a484f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7251eb",
  "rgb": {
    "r": 114,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 252.857,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55882,
    "c": 0.21986,
    "h": 286.8
  },
  "luminance": 0.1546
}

Semantic roles & 50–950 ramp

primary
#7251EB
secondary
#DCE8B0
accent
#DC0AAF
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7251EB

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

Preview Lab → · Contrast checker → · Palette generator →

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