#7F45AB#7F45AB

#7F45AB is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.8% C 0.161 H 307.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7F45AB
RGBrgb(127, 69, 171)
HSLhsl(274, 43%, 47%)
HSVhsv(274, 60%, 67%)
CMYKcmyk(25.7%, 59.6%, 0%, 32.9%)
CIE-LABlab(40.75, 43.74, -45.18)
CIE-LCHlch(40.75, 62.88, 314.07°)
OKLaboklab(50.79% 0.0991 -0.1273)
OKLCHoklch(50.79% 0.161 307.9)
XYZxyz(18.2297, 11.7088, 39.8199)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45AB #71AB45
analogous
#4C45AB #7F45AB #AB45A4
triadic
#7F45AB #AB7F45 #45AB7F
tetradic
#7F45AB #AB4C45 #71AB45 #45A4AB
square
#7F45AB #AB4C45 #71AB45 #45A4AB
split-complementary
#7F45AB #A4AB45 #45AB4C
monochromatic
#3E2254 #5F337F #7F45AB #9D6AC3 #BA96D5

Accessibility & contrast

On white

6.28
#7F45AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7F45AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45AB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45AB#FFFFFF#000000##FFFFFF
##7F45AB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAE
Deuteranopia (green-blind)
#3661A9
Tritanopia (blue-blind)
#785971
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f45ab;
/* rgb */ color: rgb(127, 69, 171);
/* oklch */ color: oklch(50.8% 0.161 307.9);
Tailwind
colors: {
  custom: {
    50: '#a77bc4',
    500: '#7f45ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f45ab;
$custom-light: #a77bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45ab",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 274.118,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50789,
    "c": 0.16134,
    "h": 307.9
  },
  "luminance": 0.11709
}

Semantic roles & 50–950 ramp

primary
#7F45AB
secondary
#A2C08B
accent
#D2568B
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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