#7F45BE#7F45BE

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

Color values

HEX#7F45BE
RGBrgb(127, 69, 190)
HSLhsl(269, 48%, 51%)
HSVhsv(269, 64%, 75%)
CMYKcmyk(33.2%, 63.7%, 0%, 25.5%)
CIE-LABlab(41.98, 48.34, -54.39)
CIE-LCHlch(41.98, 72.77, 311.63°)
OKLaboklab(52.08% 0.0984 -0.1544)
OKLCHoklch(52.08% 0.183 302.5)
XYZxyz(20.1726, 12.4860, 50.0525)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45BE #84BE45
analogous
#4547BE #7F45BE #BB45BE
triadic
#7F45BE #BE7F45 #45BE7F
tetradic
#7F45BE #BE4547 #84BE45 #45BEBB
square
#7F45BE #BE4547 #84BE45 #45BEBB
split-complementary
#7F45BE #BEBB45 #47BE45
monochromatic
#432365 #613393 #7F45BE #9E72CE #BDA0DE

Accessibility & contrast

On white

6.00
#7F45BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7F45BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45BE
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45BE#FFFFFF#000000##FFFFFF
##7F45BE1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#1C63BB
Tritanopia (blue-blind)
#725F7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f45be;
/* rgb */ color: rgb(127, 69, 190);
/* oklch */ color: oklch(52.1% 0.183 302.5);
Tailwind
colors: {
  custom: {
    50: '#a87cd2',
    500: '#7f45be',
    950: '#000000',
  },
}
SCSS
$custom: #7f45be;
$custom-light: #a87cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45be",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 268.76,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52075,
    "c": 0.18307,
    "h": 302.5
  },
  "luminance": 0.12486
}

Semantic roles & 50–950 ramp

primary
#7F45BE
secondary
#B1CA95
accent
#D85097
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F45BE

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

Preview Lab → · Contrast checker → · Palette generator →

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