#7254EC#7254EC

#7254EC is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.4% C 0.217 H 286.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7254EC
RGBrgb(114, 84, 236)
HSLhsl(252, 80%, 63%)
HSVhsv(252, 64%, 93%)
CMYKcmyk(51.7%, 64.4%, 0%, 7.5%)
CIE-LABlab(46.94, 50.12, -72.77)
CIE-LCHlch(46.94, 88.36, 304.55°)
OKLaboklab(56.4% 0.0607 -0.2088)
OKLCHoklch(56.4% 0.217 286.2)
XYZxyz(25.2456, 15.9729, 81.0934)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254EC #CEEC54
analogous
#5482EC #7254EC #BE54EC
triadic
#7254EC #EC7254 #54EC72
tetradic
#7254EC #EC5482 #CEEC54 #54ECBE
square
#7254EC #EC5482 #CEEC54 #54ECBE
split-complementary
#7254EC #ECBE54 #82EC54
monochromatic
#3314B2 #451DE6 #7254EC #9F8BF2 #CDC2F8

Accessibility & contrast

On white

5.01
#7254EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7254EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254EC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254EC#FFFFFF#000000##FFFFFF
##7254EC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006BE9
Tritanopia (blue-blind)
#427A99
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7254ec;
/* rgb */ color: rgb(114, 84, 236);
/* oklch */ color: oklch(56.4% 0.217 286.2);
Tailwind
colors: {
  custom: {
    50: '#a486f3',
    500: '#7254ec',
    950: '#000000',
  },
}
SCSS
$custom: #7254ec;
$custom-light: #a486f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7254ec",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 251.842,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56399,
    "c": 0.21748,
    "h": 286.2
  },
  "luminance": 0.15974
}

Semantic roles & 50–950 ramp

primary
#7254EC
secondary
#DFE9B2
accent
#DC09B3
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7254EC

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

Preview Lab → · Contrast checker → · Palette generator →

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