#7254EE#7254EE

#7254EE is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.6% C 0.220 H 286.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7254EE
RGBrgb(114, 84, 238)
HSLhsl(252, 82%, 63%)
HSVhsv(252, 65%, 93%)
CMYKcmyk(52.1%, 64.7%, 0%, 6.7%)
CIE-LABlab(47.09, 50.69, -73.65)
CIE-LCHlch(47.09, 89.41, 304.54°)
OKLaboklab(56.56% 0.0604 -0.2114)
OKLCHoklch(56.56% 0.22 286)
XYZxyz(25.5378, 16.0898, 82.6323)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254EE #D0EE54
analogous
#5483EE #7254EE #BF54EE
triadic
#7254EE #EE7254 #54EE72
tetradic
#7254EE #EE5483 #D0EE54 #54EEBF
square
#7254EE #EE5483 #D0EE54 #54EEBF
split-complementary
#7254EE #EEBF54 #83EE54
monochromatic
#3212B6 #441CE8 #7254EE #A08CF4 #CEC3F9

Accessibility & contrast

On white

4.98
#7254EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7254EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254EE
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254EE#FFFFFF#000000##FFFFFF
##7254EE1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F3
Deuteranopia (green-blind)
#006BEB
Tritanopia (blue-blind)
#407A9A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7254ee;
/* rgb */ color: rgb(114, 84, 238);
/* oklch */ color: oklch(56.6% 0.220 286.0);
Tailwind
colors: {
  custom: {
    50: '#a586f5',
    500: '#7254ee',
    950: '#000000',
  },
}
SCSS
$custom: #7254ee;
$custom-light: #a586f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7254ee",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 238
  },
  "hsl": {
    "h": 251.688,
    "s": 81.915,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56557,
    "c": 0.2199,
    "h": 286
  },
  "luminance": 0.16091
}

Semantic roles & 50–950 ramp

primary
#7254EE
secondary
#E0EAB3
accent
#DE07B4
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7254EE

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

Preview Lab → · Contrast checker → · Palette generator →

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