#7F45CA#7F45CA

#7F45CA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.197 H 299.7°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7F45CA
RGBrgb(127, 69, 202)
HSLhsl(266, 56%, 53%)
HSVhsv(266, 66%, 79%)
CMYKcmyk(37.1%, 65.8%, 0%, 20.8%)
CIE-LABlab(42.81, 51.33, -60.02)
CIE-LCHlch(42.81, 78.98, 310.54°)
OKLaboklab(52.94% 0.0973 -0.1709)
OKLCHoklch(52.94% 0.197 299.7)
XYZxyz(21.5386, 13.0323, 57.2464)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45CA #90CA45
analogous
#454DCA #7F45CA #C145CA
triadic
#7F45CA #CA7F45 #45CA7F
tetradic
#7F45CA #CA454D #90CA45 #45CAC1
square
#7F45CA #CA454D #90CA45 #45CAC1
split-complementary
#7F45CA #CAC145 #4DCA45
monochromatic
#452174 #612FA3 #7F45CA #A075D8 #C1A4E5

Accessibility & contrast

On white

5.82
#7F45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7F45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45CA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45CA#FFFFFF#000000##FFFFFF
##7F45CA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#6E6382
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f45ca;
/* rgb */ color: rgb(127, 69, 202);
/* oklch */ color: oklch(52.9% 0.197 299.7);
Tailwind
colors: {
  custom: {
    50: '#a97cdb',
    500: '#7f45ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f45ca;
$custom-light: #a97cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45ca",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 266.165,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5294,
    "c": 0.19667,
    "h": 299.7
  },
  "luminance": 0.13033
}

Semantic roles & 50–950 ramp

primary
#7F45CA
secondary
#B9D299
accent
#DF499D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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