#7F45C7#7F45C7

#7F45C7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.193 H 300.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7F45C7
RGBrgb(127, 69, 199)
HSLhsl(267, 54%, 53%)
HSVhsv(267, 65%, 78%)
CMYKcmyk(36.2%, 65.3%, 0%, 22%)
CIE-LABlab(42.60, 50.58, -58.63)
CIE-LCHlch(42.60, 77.43, 310.79°)
OKLaboklab(52.72% 0.0976 -0.1668)
OKLCHoklch(52.72% 0.193 300.3)
XYZxyz(21.1868, 12.8916, 55.3939)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45C7 #8DC745
analogous
#454CC7 #7F45C7 #C045C7
triadic
#7F45C7 #C77F45 #45C77F
tetradic
#7F45C7 #C7454C #8DC745 #45C7C0
square
#7F45C7 #C7454C #8DC745 #45C7C0
split-complementary
#7F45C7 #C7C045 #4CC745
monochromatic
#452270 #61309F #7F45C7 #9F74D5 #C0A3E3

Accessibility & contrast

On white

5.87
#7F45C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7F45C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45C7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45C7#FFFFFF#000000##FFFFFF
##7F45C71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0064C4
Tritanopia (blue-blind)
#6F6280
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f45c7;
/* rgb */ color: rgb(127, 69, 199);
/* oklch */ color: oklch(52.7% 0.193 300.3);
Tailwind
colors: {
  custom: {
    50: '#a97cd9',
    500: '#7f45c7',
    950: '#000000',
  },
}
SCSS
$custom: #7f45c7;
$custom-light: #a97cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45c7",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 266.769,
    "s": 53.719,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5272,
    "c": 0.19329,
    "h": 300.3
  },
  "luminance": 0.12892
}

Semantic roles & 50–950 ramp

primary
#7F45C7
secondary
#B7D098
accent
#DD4B9C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F45C7

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

Preview Lab → · Contrast checker → · Palette generator →

#7F45C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva