#7254D3#7254D3

#7254D3 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.187 H 289.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7254D3
RGBrgb(114, 84, 211)
HSLhsl(254, 59%, 58%)
HSVhsv(254, 60%, 83%)
CMYKcmyk(46%, 60.2%, 0%, 17.3%)
CIE-LABlab(45.11, 42.96, -61.55)
CIE-LCHlch(45.11, 75.06, 304.91°)
OKLaboklab(54.49% 0.0627 -0.1758)
OKLCHoklch(54.49% 0.187 289.6)
XYZxyz(21.8643, 14.6204, 63.2854)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254D3 #B5D354
analogous
#5475D3 #7254D3 #B154D3
triadic
#7254D3 #D37254 #54D372
tetradic
#7254D3 #D35475 #B5D354 #54D3B1
square
#7254D3 #D35475 #B5D354 #54D3B1
split-complementary
#7254D3 #D3B154 #75D354
monochromatic
#3B2389 #5030BA #7254D3 #9A85E0 #C2B5EC

Accessibility & contrast

On white

5.35
#7254D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7254D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254D3
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254D3#FFFFFF#000000##FFFFFF
##7254D31.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#54718B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7254d3;
/* rgb */ color: rgb(114, 84, 211);
/* oklch */ color: oklch(54.5% 0.187 289.6);
Tailwind
colors: {
  custom: {
    50: '#a185e1',
    500: '#7254d3',
    950: '#000000',
  },
}
SCSS
$custom: #7254d3;
$custom-light: #a185e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7254d3",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 254.173,
    "s": 59.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54493,
    "c": 0.18668,
    "h": 289.6
  },
  "luminance": 0.14621
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7254D3

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

Preview Lab → · Contrast checker → · Palette generator →

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