#7254EF#7254EF

#7254EF is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.6% C 0.221 H 285.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7254EF
RGBrgb(114, 84, 239)
HSLhsl(252, 83%, 63%)
HSVhsv(252, 65%, 94%)
CMYKcmyk(52.3%, 64.9%, 0%, 6.3%)
CIE-LABlab(47.17, 50.98, -74.09)
CIE-LCHlch(47.17, 89.93, 304.53°)
OKLaboklab(56.64% 0.0603 -0.2127)
OKLCHoklch(56.64% 0.221 285.8)
XYZxyz(25.6851, 16.1487, 83.4082)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254EF #D1EF54
analogous
#5483EF #7254EF #BF54EF
triadic
#7254EF #EF7254 #54EF72
tetradic
#7254EF #EF5483 #D1EF54 #54EFBF
square
#7254EF #EF5483 #D1EF54 #54EFBF
split-complementary
#7254EF #EFBF54 #83EF54
monochromatic
#3111B7 #441CEA #7254EF #A08CF4 #CEC4F9

Accessibility & contrast

On white

4.96
#7254EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7254EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254EF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254EF#FFFFFF#000000##FFFFFF
##7254EF1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#006BEC
Tritanopia (blue-blind)
#3F7B9A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7254ef;
/* rgb */ color: rgb(114, 84, 239);
/* oklch */ color: oklch(56.6% 0.221 285.8);
Tailwind
colors: {
  custom: {
    50: '#a586f5',
    500: '#7254ef',
    950: '#000000',
  },
}
SCSS
$custom: #7254ef;
$custom-light: #a586f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7254ef",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 251.613,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56637,
    "c": 0.2211,
    "h": 285.8
  },
  "luminance": 0.1615
}

Semantic roles & 50–950 ramp

primary
#7254EF
secondary
#E0EBB4
accent
#DF06B5
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7254EF

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

Preview Lab → · Contrast checker → · Palette generator →

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