#7254CE#7254CE

#7254CE is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.180 H 290.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7254CE
RGBrgb(114, 84, 206)
HSLhsl(255, 55%, 57%)
HSVhsv(255, 59%, 81%)
CMYKcmyk(44.7%, 59.2%, 0%, 19.2%)
CIE-LABlab(44.76, 41.54, -59.24)
CIE-LCHlch(44.76, 72.35, 305.04°)
OKLaboklab(54.13% 0.0629 -0.169)
OKLCHoklch(54.13% 0.18 290.4)
XYZxyz(21.2472, 14.3735, 60.0354)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254CE #B0CE54
analogous
#5473CE #7254CE #AF54CE
triadic
#7254CE #CE7254 #54CE72
tetradic
#7254CE #CE5473 #B0CE54 #54CEAF
square
#7254CE #CE5473 #B0CE54 #54CEAF
split-complementary
#7254CE #CEAF54 #73CE54
monochromatic
#3C2582 #5233B2 #7254CE #9984DC #C0B3E9

Accessibility & contrast

On white

5.42
#7254CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7254CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254CE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254CE#FFFFFF#000000##FFFFFF
##7254CE1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#566F89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7254ce;
/* rgb */ color: rgb(114, 84, 206);
/* oklch */ color: oklch(54.1% 0.180 290.4);
Tailwind
colors: {
  custom: {
    50: '#a185de',
    500: '#7254ce',
    950: '#000000',
  },
}
SCSS
$custom: #7254ce;
$custom-light: #a185de;
$custom-dark: #000000;
JSON
{
  "hex": "#7254ce",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 254.754,
    "s": 55.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54131,
    "c": 0.18037,
    "h": 290.4
  },
  "luminance": 0.14374
}

Semantic roles & 50–950 ramp

primary
#7254CE
secondary
#CCD8A6
accent
#DF49BA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7254CE

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

Preview Lab → · Contrast checker → · Palette generator →

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