#7F45BB#7F45BB

#7F45BB is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.180 H 303.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7F45BB
RGBrgb(127, 69, 187)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 63%, 73%)
CMYKcmyk(32.1%, 63.1%, 0%, 26.7%)
CIE-LABlab(41.78, 47.60, -52.96)
CIE-LCHlch(41.78, 71.21, 311.95°)
OKLaboklab(51.87% 0.0986 -0.1502)
OKLCHoklch(51.87% 0.18 303.3)
XYZxyz(19.8481, 12.3561, 48.3434)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45BB #81BB45
analogous
#4546BB #7F45BB #BA45BB
triadic
#7F45BB #BB7F45 #45BB7F
tetradic
#7F45BB #BB4546 #81BB45 #45BBBA
square
#7F45BB #BB4546 #81BB45 #45BBBA
split-complementary
#7F45BB #BBBA45 #46BB45
monochromatic
#422462 #61348F #7F45BB #9E72CB #BD9FDC

Accessibility & contrast

On white

6.05
#7F45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7F45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45BB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45BB#FFFFFF#000000##FFFFFF
##7F45BB1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2262B8
Tritanopia (blue-blind)
#745E7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f45bb;
/* rgb */ color: rgb(127, 69, 187);
/* oklch */ color: oklch(51.9% 0.180 303.3);
Tailwind
colors: {
  custom: {
    50: '#a87cd0',
    500: '#7f45bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f45bb;
$custom-light: #a87cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45bb",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 269.492,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51865,
    "c": 0.17965,
    "h": 303.3
  },
  "luminance": 0.12356
}

Semantic roles & 50–950 ramp

primary
#7F45BB
secondary
#AEC894
accent
#D65295
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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