#7F45C8#7F45C8

#7F45C8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.194 H 300.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F45C8
RGBrgb(127, 69, 200)
HSLhsl(267, 54%, 53%)
HSVhsv(267, 66%, 78%)
CMYKcmyk(36.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(42.67, 50.83, -59.09)
CIE-LCHlch(42.67, 77.95, 310.70°)
OKLaboklab(52.79% 0.0975 -0.1682)
OKLCHoklch(52.79% 0.194 300.1)
XYZxyz(21.3033, 12.9382, 56.0074)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45C8 #8EC845
analogous
#454CC8 #7F45C8 #C145C8
triadic
#7F45C8 #C87F45 #45C87F
tetradic
#7F45C8 #C8454C #8EC845 #45C8C1
square
#7F45C8 #C8454C #8EC845 #45C8C1
split-complementary
#7F45C8 #C8C145 #4CC845
monochromatic
#452171 #612FA0 #7F45C8 #A074D6 #C0A3E4

Accessibility & contrast

On white

5.85
#7F45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7F45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45C8
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45C8#FFFFFF#000000##FFFFFF
##7F45C81.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#6F6380
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f45c8;
/* rgb */ color: rgb(127, 69, 200);
/* oklch */ color: oklch(52.8% 0.194 300.1);
Tailwind
colors: {
  custom: {
    50: '#a97cda',
    500: '#7f45c8',
    950: '#000000',
  },
}
SCSS
$custom: #7f45c8;
$custom-light: #a97cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45c8",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 266.565,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.19442,
    "h": 300.1
  },
  "luminance": 0.12938
}

Semantic roles & 50–950 ramp

primary
#7F45C8
secondary
#B8D198
accent
#DE4A9C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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