#7F45BF#7F45BF

#7F45BF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.184 H 302.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7F45BF
RGBrgb(127, 69, 191)
HSLhsl(269, 49%, 51%)
HSVhsv(269, 64%, 75%)
CMYKcmyk(33.5%, 63.9%, 0%, 25.1%)
CIE-LABlab(42.05, 48.59, -54.87)
CIE-LCHlch(42.05, 73.29, 311.53°)
OKLaboklab(52.15% 0.0983 -0.1558)
OKLCHoklch(52.15% 0.184 302.3)
XYZxyz(20.2823, 12.5298, 50.6301)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45BF #85BF45
analogous
#4548BF #7F45BF #BC45BF
triadic
#7F45BF #BF7F45 #45BF7F
tetradic
#7F45BF #BF4548 #85BF45 #45BFBC
square
#7F45BF #BF4548 #85BF45 #45BFBC
split-complementary
#7F45BF #BFBC45 #48BF45
monochromatic
#432366 #613394 #7F45BF #9E73CF #BEA0DE

Accessibility & contrast

On white

5.99
#7F45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45BF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45BF#FFFFFF#000000##FFFFFF
##7F45BF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#1A63BC
Tritanopia (blue-blind)
#725F7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f45bf;
/* rgb */ color: rgb(127, 69, 191);
/* oklch */ color: oklch(52.1% 0.184 302.3);
Tailwind
colors: {
  custom: {
    50: '#a97cd3',
    500: '#7f45bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f45bf;
$custom-light: #a97cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45bf",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 268.525,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52145,
    "c": 0.18421,
    "h": 302.3
  },
  "luminance": 0.1253
}

Semantic roles & 50–950 ramp

primary
#7F45BF
secondary
#B1CB95
accent
#D84F97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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