#7F45AE#7F45AE

#7F45AE is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.0% C 0.165 H 307.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7F45AE
RGBrgb(127, 69, 174)
HSLhsl(273, 43%, 48%)
HSVhsv(273, 60%, 68%)
CMYKcmyk(27%, 60.3%, 0%, 31.8%)
CIE-LABlab(40.94, 44.45, -46.66)
CIE-LCHlch(40.94, 64.44, 313.61°)
OKLaboklab(50.99% 0.0991 -0.1317)
OKLCHoklch(50.99% 0.165 307)
XYZxyz(18.5189, 11.8245, 41.3430)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45AE #74AE45
analogous
#4B45AE #7F45AE #AE45A8
triadic
#7F45AE #AE7F45 #45AE7F
tetradic
#7F45AE #AE4B45 #74AE45 #45A8AE
square
#7F45AE #AE4B45 #74AE45 #45A8AE
split-complementary
#7F45AE #A8AE45 #45AE4B
monochromatic
#3F2256 #5F3482 #7F45AE #9D6CC5 #BA97D6

Accessibility & contrast

On white

6.24
#7F45AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7F45AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45AE
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45AE#FFFFFF#000000##FFFFFF
##7F45AE1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165EB1
Deuteranopia (green-blind)
#3361AC
Tritanopia (blue-blind)
#785A73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f45ae;
/* rgb */ color: rgb(127, 69, 174);
/* oklch */ color: oklch(51.0% 0.165 307.0);
Tailwind
colors: {
  custom: {
    50: '#a77cc7',
    500: '#7f45ae',
    950: '#000000',
  },
}
SCSS
$custom: #7f45ae;
$custom-light: #a77cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45ae",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 273.143,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50985,
    "c": 0.16478,
    "h": 307
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#7F45AE
secondary
#A5C28D
accent
#D3558D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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