#7251EC#7251EC

#7251EC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.0% C 0.221 H 286.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7251EC
RGBrgb(114, 81, 236)
HSLhsl(253, 80%, 62%)
HSVhsv(253, 66%, 93%)
CMYKcmyk(51.7%, 65.7%, 0%, 7.5%)
CIE-LABlab(46.33, 51.75, -73.76)
CIE-LCHlch(46.33, 90.10, 305.05°)
OKLaboklab(55.96% 0.0634 -0.2117)
OKLCHoklch(55.96% 0.221 286.7)
XYZxyz(25.0177, 15.5171, 81.0175)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7251EC #CBEC51
analogous
#517EEC #7251EC #BF51EC
triadic
#7251EC #EC7251 #51EC72
tetradic
#7251EC #EC517E #CBEC51 #51ECBF
square
#7251EC #EC517E #CBEC51 #51ECBF
split-complementary
#7251EC #ECBF51 #7EEC51
monochromatic
#3413AF #451AE6 #7251EC #9F88F2 #CBBFF8

Accessibility & contrast

On white

5.12
#7251EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7251EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7251EC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7251EC#FFFFFF#000000##FFFFFF
##7251EC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#0069E9
Tritanopia (blue-blind)
#427898
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7251ec;
/* rgb */ color: rgb(114, 81, 236);
/* oklch */ color: oklch(56.0% 0.221 286.7);
Tailwind
colors: {
  custom: {
    50: '#a584f3',
    500: '#7251ec',
    950: '#000000',
  },
}
SCSS
$custom: #7251ec;
$custom-light: #a584f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7251ec",
  "rgb": {
    "r": 114,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 252.774,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55962,
    "c": 0.22105,
    "h": 286.7
  },
  "luminance": 0.15518
}

Semantic roles & 50–950 ramp

primary
#7251EC
secondary
#DDE9B0
accent
#DD09B0
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7251EC

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

Preview Lab → · Contrast checker → · Palette generator →

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