#754EB7#754EB7

#754EB7 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.160 H 297.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#754EB7
RGBrgb(117, 78, 183)
HSLhsl(262, 42%, 51%)
HSVhsv(262, 57%, 72%)
CMYKcmyk(36.1%, 57.4%, 0%, 28.2%)
CIE-LABlab(42.23, 39.33, -49.95)
CIE-LCHlch(42.23, 63.57, 308.21°)
OKLaboklab(51.86% 0.0743 -0.1416)
OKLCHoklch(51.86% 0.16 297.7)
XYZxyz(18.6056, 12.6493, 46.2519)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#754EB7 #90B74E
analogous
#4E5BB7 #754EB7 #A94EB7
triadic
#754EB7 #B7754E #4EB775
tetradic
#754EB7 #B74E5B #90B74E #4EB7A9
square
#754EB7 #B74E5B #90B74E #4EB7A9
split-complementary
#754EB7 #B7A94E #5BB74E
monochromatic
#3E2863 #593A8E #754EB7 #977AC9 #B9A5DA

Accessibility & contrast

On white

5.95
#754EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#754EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #754EB7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##754EB7#FFFFFF#000000##FFFFFF
##754EB71.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A64BA
Deuteranopia (green-blind)
#2A63B5
Tritanopia (blue-blind)
#66647B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #754eb7;
/* rgb */ color: rgb(117, 78, 183);
/* oklch */ color: oklch(51.9% 0.160 297.7);
Tailwind
colors: {
  custom: {
    50: '#a181cd',
    500: '#754eb7',
    950: '#000000',
  },
}
SCSS
$custom: #754eb7;
$custom-light: #a181cd;
$custom-dark: #000000;
JSON
{
  "hex": "#754eb7",
  "rgb": {
    "r": 117,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 262.286,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.15997,
    "h": 297.7
  },
  "luminance": 0.1265
}

Semantic roles & 50–950 ramp

primary
#754EB7
secondary
#B6C899
accent
#D256A4
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #754EB7

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

Preview Lab → · Contrast checker → · Palette generator →

#754EB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva