#7F45DA#7F45DA

#7F45DA is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.215 H 296.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7F45DA
RGBrgb(127, 69, 218)
HSLhsl(263, 67%, 56%)
HSVhsv(263, 68%, 85%)
CMYKcmyk(41.7%, 68.3%, 0%, 14.5%)
CIE-LABlab(43.99, 55.39, -67.31)
CIE-LCHlch(43.99, 87.18, 309.45°)
OKLaboklab(54.15% 0.0951 -0.1924)
OKLCHoklch(54.15% 0.215 296.3)
XYZxyz(23.5321, 13.8297, 67.7457)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45DA #A0DA45
analogous
#4556DA #7F45DA #CA45DA
triadic
#7F45DA #DA7F45 #45DA7F
tetradic
#7F45DA #DA4556 #A0DA45 #45DACA
square
#7F45DA #DA4556 #A0DA45 #45DACA
split-complementary
#7F45DA #DACA45 #56DA45
monochromatic
#461B89 #6025BC #7F45DA #A278E4 #C5ABEE

Accessibility & contrast

On white

5.58
#7F45DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7F45DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45DA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45DA#FFFFFF#000000##FFFFFF
##7F45DA1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#0066D7
Tritanopia (blue-blind)
#67698A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f45da;
/* rgb */ color: rgb(127, 69, 218);
/* oklch */ color: oklch(54.2% 0.215 296.3);
Tailwind
colors: {
  custom: {
    50: '#ab7de6',
    500: '#7f45da',
    950: '#000000',
  },
}
SCSS
$custom: #7f45da;
$custom-light: #ab7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45da",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 218
  },
  "hsl": {
    "h": 263.356,
    "s": 66.816,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54152,
    "c": 0.2146,
    "h": 296.3
  },
  "luminance": 0.1383
}

Semantic roles & 50–950 ramp

primary
#7F45DA
secondary
#C4DC9F
accent
#EA3EA7
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F45DA

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

Preview Lab → · Contrast checker → · Palette generator →

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