#7254D4#7254D4

#7254D4 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.188 H 289.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7254D4
RGBrgb(114, 84, 212)
HSLhsl(254, 60%, 58%)
HSVhsv(254, 60%, 83%)
CMYKcmyk(46.2%, 60.4%, 0%, 16.9%)
CIE-LABlab(45.18, 43.24, -62.01)
CIE-LCHlch(45.18, 75.60, 304.89°)
OKLaboklab(54.57% 0.0626 -0.1772)
OKLCHoklch(54.57% 0.188 289.5)
XYZxyz(21.9900, 14.6707, 63.9477)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254D4 #B6D454
analogous
#5476D4 #7254D4 #B254D4
triadic
#7254D4 #D47254 #54D472
tetradic
#7254D4 #D45476 #B6D454 #54D4B2
square
#7254D4 #D45476 #B6D454 #54D4B2
split-complementary
#7254D4 #D4B254 #76D454
monochromatic
#3B238B #502FBC #7254D4 #9A85E0 #C3B6ED

Accessibility & contrast

On white

5.34
#7254D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7254D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254D4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254D4#FFFFFF#000000##FFFFFF
##7254D41.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#53718C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7254d4;
/* rgb */ color: rgb(114, 84, 212);
/* oklch */ color: oklch(54.6% 0.188 289.5);
Tailwind
colors: {
  custom: {
    50: '#a185e2',
    500: '#7254d4',
    950: '#000000',
  },
}
SCSS
$custom: #7254d4;
$custom-light: #a185e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7254d4",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 254.063,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54567,
    "c": 0.18794,
    "h": 289.5
  },
  "luminance": 0.14672
}

Semantic roles & 50–950 ramp

primary
#7254D4
secondary
#CFDBA8
accent
#E345BE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7254D4

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

Preview Lab → · Contrast checker → · Palette generator →

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