#7254ED#7254ED

#7254ED is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.219 H 286.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7254ED
RGBrgb(114, 84, 237)
HSLhsl(252, 81%, 63%)
HSVhsv(252, 65%, 93%)
CMYKcmyk(51.9%, 64.6%, 0%, 7.1%)
CIE-LABlab(47.02, 50.40, -73.21)
CIE-LCHlch(47.02, 88.89, 304.55°)
OKLaboklab(56.48% 0.0606 -0.2101)
OKLCHoklch(56.48% 0.219 286.1)
XYZxyz(25.3913, 16.0312, 81.8607)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254ED #CFED54
analogous
#5482ED #7254ED #BF54ED
triadic
#7254ED #ED7254 #54ED72
tetradic
#7254ED #ED5482 #CFED54 #54EDBF
square
#7254ED #ED5482 #CFED54 #54EDBF
split-complementary
#7254ED #EDBF54 #82ED54
monochromatic
#3213B4 #441DE7 #7254ED #A08BF3 #CDC3F9

Accessibility & contrast

On white

4.99
#7254ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7254ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254ED
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254ED#FFFFFF#000000##FFFFFF
##7254ED1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F2
Deuteranopia (green-blind)
#006BEA
Tritanopia (blue-blind)
#417A99
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7254ed;
/* rgb */ color: rgb(114, 84, 237);
/* oklch */ color: oklch(56.5% 0.219 286.1);
Tailwind
colors: {
  custom: {
    50: '#a586f4',
    500: '#7254ed',
    950: '#000000',
  },
}
SCSS
$custom: #7254ed;
$custom-light: #a586f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7254ed",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 251.765,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56478,
    "c": 0.21869,
    "h": 286.1
  },
  "luminance": 0.16032
}

Semantic roles & 50–950 ramp

primary
#7254ED
secondary
#DFEAB3
accent
#DD08B4
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7254ED

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

Preview Lab → · Contrast checker → · Palette generator →

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