#7F45BD#7F45BD

#7F45BD is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.182 H 302.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7F45BD
RGBrgb(127, 69, 189)
HSLhsl(269, 48%, 51%)
HSVhsv(269, 63%, 74%)
CMYKcmyk(32.8%, 63.5%, 0%, 25.9%)
CIE-LABlab(41.91, 48.10, -53.92)
CIE-LCHlch(41.91, 72.25, 311.73°)
OKLaboklab(52% 0.0985 -0.153)
OKLCHoklch(52% 0.182 302.8)
XYZxyz(20.0637, 12.4424, 49.4789)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45BD #83BD45
analogous
#4547BD #7F45BD #BB45BD
triadic
#7F45BD #BD7F45 #45BD7F
tetradic
#7F45BD #BD4547 #83BD45 #45BDBB
square
#7F45BD #BD4547 #83BD45 #45BDBB
split-complementary
#7F45BD #BDBB45 #47BD45
monochromatic
#432464 #613491 #7F45BD #9E72CD #BD9FDD

Accessibility & contrast

On white

6.02
#7F45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7F45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45BD
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45BD#FFFFFF#000000##FFFFFF
##7F45BD1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#1E63BA
Tritanopia (blue-blind)
#735F7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f45bd;
/* rgb */ color: rgb(127, 69, 189);
/* oklch */ color: oklch(52.0% 0.182 302.8);
Tailwind
colors: {
  custom: {
    50: '#a87cd2',
    500: '#7f45bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f45bd;
$custom-light: #a87cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45bd",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 269,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52004,
    "c": 0.18193,
    "h": 302.8
  },
  "luminance": 0.12442
}

Semantic roles & 50–950 ramp

primary
#7F45BD
secondary
#B0CA94
accent
#D75196
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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