#7F45D2#7F45D2

#7F45D2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.5% C 0.206 H 297.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7F45D2
RGBrgb(127, 69, 210)
HSLhsl(265, 61%, 55%)
HSVhsv(265, 67%, 82%)
CMYKcmyk(39.5%, 67.1%, 0%, 17.6%)
CIE-LABlab(43.39, 53.36, -63.70)
CIE-LCHlch(43.39, 83.09, 309.95°)
OKLaboklab(53.54% 0.0963 -0.1817)
OKLCHoklch(53.54% 0.206 297.9)
XYZxyz(22.5104, 13.4211, 62.3648)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45D2 #98D245
analogous
#4552D2 #7F45D2 #C645D2
triadic
#7F45D2 #D27F45 #45D27F
tetradic
#7F45D2 #D24552 #98D245 #45D2C6
square
#7F45D2 #D24552 #98D245 #45D2C6
split-complementary
#7F45D2 #D2C645 #52D245
monochromatic
#461F7E #612AAF #7F45D2 #A176DE #C3A8EA

Accessibility & contrast

On white

5.70
#7F45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7F45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45D2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45D2#FFFFFF#000000##FFFFFF
##7F45D21.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#6B6686
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f45d2;
/* rgb */ color: rgb(127, 69, 210);
/* oklch */ color: oklch(53.5% 0.206 297.9);
Tailwind
colors: {
  custom: {
    50: '#aa7de1',
    500: '#7f45d2',
    950: '#000000',
  },
}
SCSS
$custom: #7f45d2;
$custom-light: #aa7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45d2",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 264.681,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53538,
    "c": 0.20567,
    "h": 297.9
  },
  "luminance": 0.13421
}

Semantic roles & 50–950 ramp

primary
#7F45D2
secondary
#BFD79C
accent
#E444A2
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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