#7F45B9#7F45B9

#7F45B9 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.177 H 303.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7F45B9
RGBrgb(127, 69, 185)
HSLhsl(270, 46%, 50%)
HSVhsv(270, 63%, 73%)
CMYKcmyk(31.4%, 62.7%, 0%, 27.5%)
CIE-LABlab(41.64, 47.11, -52.00)
CIE-LCHlch(41.64, 70.17, 312.17°)
OKLaboklab(51.73% 0.0987 -0.1474)
OKLCHoklch(51.73% 0.177 303.8)
XYZxyz(19.6355, 12.2711, 47.2236)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45B9 #7FB945
analogous
#4545B9 #7F45B9 #B945B9
triadic
#7F45B9 #B97F45 #45B97F
tetradic
#7F45B9 #B94545 #7FB945 #45B9B9
square
#7F45B9 #B94545 #7FB945 #45B9B9
split-complementary
#7F45B9 #B9B945 #45B945
monochromatic
#422460 #60348C #7F45B9 #9E71CA #BC9EDB

Accessibility & contrast

On white

6.08
#7F45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7F45B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45B9
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45B9#FFFFFF#000000##FFFFFF
##7F45B91.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#2562B6
Tritanopia (blue-blind)
#745D79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f45b9;
/* rgb */ color: rgb(127, 69, 185);
/* oklch */ color: oklch(51.7% 0.177 303.8);
Tailwind
colors: {
  custom: {
    50: '#a87ccf',
    500: '#7f45b9',
    950: '#000000',
  },
}
SCSS
$custom: #7f45b9;
$custom-light: #a87ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45b9",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 270,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51726,
    "c": 0.17738,
    "h": 303.8
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

primary
#7F45B9
secondary
#ADC793
accent
#D55294
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F45B9

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

Preview Lab → · Contrast checker → · Palette generator →

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