#7254DC#7254DC

#7254DC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.198 H 288.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7254DC
RGBrgb(114, 84, 220)
HSLhsl(253, 66%, 60%)
HSVhsv(253, 62%, 86%)
CMYKcmyk(48.2%, 61.8%, 0%, 13.7%)
CIE-LABlab(45.75, 45.53, -65.65)
CIE-LCHlch(45.75, 79.89, 304.74°)
OKLaboklab(55.16% 0.0621 -0.1879)
OKLCHoklch(55.16% 0.198 288.3)
XYZxyz(23.0243, 15.0844, 69.3947)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254DC #BEDC54
analogous
#547ADC #7254DC #B654DC
triadic
#7254DC #DC7254 #54DC72
tetradic
#7254DC #DC547A #BEDC54 #54DCB6
square
#7254DC #DC547A #BEDC54 #54DCB6
split-complementary
#7254DC #DCB654 #7ADC54
monochromatic
#391F97 #4D29CA #7254DC #9C87E6 #C6BAF1

Accessibility & contrast

On white

5.23
#7254DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7254DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254DC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254DC#FFFFFF#000000##FFFFFF
##7254DC1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0069D9
Tritanopia (blue-blind)
#4E7490
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7254dc;
/* rgb */ color: rgb(114, 84, 220);
/* oklch */ color: oklch(55.2% 0.198 288.3);
Tailwind
colors: {
  custom: {
    50: '#a285e8',
    500: '#7254dc',
    950: '#000000',
  },
}
SCSS
$custom: #7254dc;
$custom-light: #a285e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7254dc",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 253.235,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55162,
    "c": 0.19792,
    "h": 288.3
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#7254DC
secondary
#D5E0AC
accent
#E93FC3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7254DC

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

Preview Lab → · Contrast checker → · Palette generator →

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