#7F45D1#7F45D1

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

Color values

HEX#7F45D1
RGBrgb(127, 69, 209)
HSLhsl(265, 60%, 55%)
HSVhsv(265, 67%, 82%)
CMYKcmyk(39.2%, 67%, 0%, 18%)
CIE-LABlab(43.32, 53.10, -63.24)
CIE-LCHlch(43.32, 82.58, 310.02°)
OKLaboklab(53.46% 0.0964 -0.1804)
OKLCHoklch(53.46% 0.205 298.1)
XYZxyz(22.3862, 13.3714, 61.7107)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45D1 #97D145
analogous
#4551D1 #7F45D1 #C545D1
triadic
#7F45D1 #D17F45 #45D17F
tetradic
#7F45D1 #D14551 #97D145 #45D1C5
square
#7F45D1 #D14551 #97D145 #45D1C5
split-complementary
#7F45D1 #D1C545 #51D145
monochromatic
#461F7D #612BAE #7F45D1 #A176DD #C3A7E9

Accessibility & contrast

On white

5.72
#7F45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7F45D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45D1
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45D1#FFFFFF#000000##FFFFFF
##7F45D11.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#0065CE
Tritanopia (blue-blind)
#6B6685
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f45d1;
/* rgb */ color: rgb(127, 69, 209);
/* oklch */ color: oklch(53.5% 0.205 298.1);
Tailwind
colors: {
  custom: {
    50: '#aa7de0',
    500: '#7f45d1',
    950: '#000000',
  },
}
SCSS
$custom: #7f45d1;
$custom-light: #aa7de0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45d1",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 264.857,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53462,
    "c": 0.20456,
    "h": 298.1
  },
  "luminance": 0.13372
}

Semantic roles & 50–950 ramp

primary
#7F45D1
secondary
#BED79B
accent
#E344A2
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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