#7254E8#7254E8

#7254E8 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.213 H 286.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7254E8
RGBrgb(114, 84, 232)
HSLhsl(252, 76%, 62%)
HSVhsv(252, 64%, 91%)
CMYKcmyk(50.9%, 63.8%, 0%, 9%)
CIE-LABlab(46.64, 48.97, -71.01)
CIE-LCHlch(46.64, 86.26, 304.59°)
OKLaboklab(56.08% 0.0611 -0.2037)
OKLCHoklch(56.08% 0.213 286.7)
XYZxyz(24.6709, 15.7430, 78.0670)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254E8 #CAE854
analogous
#5480E8 #7254E8 #BC54E8
triadic
#7254E8 #E87254 #54E872
tetradic
#7254E8 #E85480 #CAE854 #54E8BC
square
#7254E8 #E85480 #CAE854 #54E8BC
split-complementary
#7254E8 #E8BC54 #80E854
monochromatic
#3517AB #461EE1 #7254E8 #9E8AEF #CBC0F7

Accessibility & contrast

On white

5.06
#7254E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7254E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254E8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254E8#FFFFFF#000000##FFFFFF
##7254E81.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006AE5
Tritanopia (blue-blind)
#457897
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7254e8;
/* rgb */ color: rgb(114, 84, 232);
/* oklch */ color: oklch(56.1% 0.213 286.7);
Tailwind
colors: {
  custom: {
    50: '#a486f0',
    500: '#7254e8',
    950: '#000000',
  },
}
SCSS
$custom: #7254e8;
$custom-light: #a486f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7254e8",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 252.162,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56084,
    "c": 0.21264,
    "h": 286.7
  },
  "luminance": 0.15744
}

Semantic roles & 50–950 ramp

primary
#7254E8
secondary
#DCE7B1
accent
#D80DAF
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7254E8

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

Preview Lab → · Contrast checker → · Palette generator →

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