#7F45E6#7F45E6

#7F45E6 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.228 H 294.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F45E6
RGBrgb(127, 69, 230)
HSLhsl(262, 76%, 59%)
HSVhsv(262, 70%, 90%)
CMYKcmyk(44.8%, 70%, 0%, 9.8%)
CIE-LABlab(44.91, 58.48, -72.63)
CIE-LCHlch(44.91, 93.25, 308.84°)
OKLaboklab(55.1% 0.0931 -0.208)
OKLCHoklch(55.1% 0.228 294.1)
XYZxyz(25.1596, 14.4807, 76.3170)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45E6 #ACE645
analogous
#455BE6 #7F45E6 #CF45E6
triadic
#7F45E6 #E67F45 #45E67F
tetradic
#7F45E6 #E6455B #ACE645 #45E6CF
square
#7F45E6 #E6455B #ACE645 #45E6CF
split-complementary
#7F45E6 #E6CF45 #5BE645
monochromatic
#45159C #5E1CD2 #7F45E6 #A47BED #C9B1F5

Accessibility & contrast

On white

5.39
#7F45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7F45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45E6
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45E6#FFFFFF#000000##FFFFFF
##7F45E61.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#616E91
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f45e6;
/* rgb */ color: rgb(127, 69, 230);
/* oklch */ color: oklch(55.1% 0.228 294.1);
Tailwind
colors: {
  custom: {
    50: '#ac7def',
    500: '#7f45e6',
    950: '#000000',
  },
}
SCSS
$custom: #7f45e6;
$custom-light: #ac7def;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45e6",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 261.615,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55101,
    "c": 0.22786,
    "h": 294.1
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#7F45E6
secondary
#CCE3A4
accent
#F335AE
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7F45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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