#7F45D9#7F45D9

#7F45D9 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.213 H 296.5°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7F45D9
RGBrgb(127, 69, 217)
HSLhsl(264, 66%, 56%)
HSVhsv(264, 68%, 85%)
CMYKcmyk(41.5%, 68.2%, 0%, 14.9%)
CIE-LABlab(43.91, 55.14, -66.86)
CIE-LCHlch(43.91, 86.67, 309.51°)
OKLaboklab(54.08% 0.0953 -0.191)
OKLCHoklch(54.08% 0.213 296.5)
XYZxyz(23.4016, 13.7776, 67.0586)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45D9 #9FD945
analogous
#4555D9 #7F45D9 #C945D9
triadic
#7F45D9 #D97F45 #45D97F
tetradic
#7F45D9 #D94555 #9FD945 #45D9C9
square
#7F45D9 #D94555 #9FD945 #45D9C9
split-complementary
#7F45D9 #D9C945 #55D945
monochromatic
#461C88 #6026BB #7F45D9 #A278E3 #C5ABEE

Accessibility & contrast

On white

5.59
#7F45D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7F45D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45D9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45D9#FFFFFF#000000##FFFFFF
##7F45D91.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#68698A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f45d9;
/* rgb */ color: rgb(127, 69, 217);
/* oklch */ color: oklch(54.1% 0.213 296.5);
Tailwind
colors: {
  custom: {
    50: '#ab7de6',
    500: '#7f45d9',
    950: '#000000',
  },
}
SCSS
$custom: #7f45d9;
$custom-light: #ab7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45d9",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 263.514,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54075,
    "c": 0.21349,
    "h": 296.5
  },
  "luminance": 0.13778
}

Semantic roles & 50–950 ramp

primary
#7F45D9
secondary
#C4DB9E
accent
#E93FA6
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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