#7F45BC#7F45BC

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

Color values

HEX#7F45BC
RGBrgb(127, 69, 188)
HSLhsl(269, 47%, 50%)
HSVhsv(269, 63%, 74%)
CMYKcmyk(32.4%, 63.3%, 0%, 26.3%)
CIE-LABlab(41.84, 47.85, -53.44)
CIE-LCHlch(41.84, 71.73, 311.84°)
OKLaboklab(51.93% 0.0986 -0.1516)
OKLCHoklch(51.93% 0.181 303)
XYZxyz(19.9555, 12.3991, 48.9092)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45BC #82BC45
analogous
#4546BC #7F45BC #BB45BC
triadic
#7F45BC #BC7F45 #45BC7F
tetradic
#7F45BC #BC4546 #82BC45 #45BCBB
square
#7F45BC #BC4546 #82BC45 #45BCBB
split-complementary
#7F45BC #BCBB45 #46BC45
monochromatic
#432463 #613490 #7F45BC #9E72CC #BD9FDC

Accessibility & contrast

On white

6.03
#7F45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7F45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45BC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45BC#FFFFFF#000000##FFFFFF
##7F45BC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#2062B9
Tritanopia (blue-blind)
#735E7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f45bc;
/* rgb */ color: rgb(127, 69, 188);
/* oklch */ color: oklch(51.9% 0.181 303.0);
Tailwind
colors: {
  custom: {
    50: '#a87cd1',
    500: '#7f45bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f45bc;
$custom-light: #a87cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45bc",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 269.244,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51934,
    "c": 0.18079,
    "h": 303
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#7F45BC
secondary
#AFC994
accent
#D75196
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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