#7F45D3#7F45D3

#7F45D3 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.6% C 0.207 H 297.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7F45D3
RGBrgb(127, 69, 211)
HSLhsl(265, 62%, 55%)
HSVhsv(265, 67%, 83%)
CMYKcmyk(39.8%, 67.3%, 0%, 17.3%)
CIE-LABlab(43.46, 53.61, -64.15)
CIE-LCHlch(43.46, 83.60, 309.88°)
OKLaboklab(53.61% 0.0962 -0.1831)
OKLCHoklch(53.61% 0.207 297.7)
XYZxyz(22.6354, 13.4711, 63.0230)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45D3 #99D345
analogous
#4552D3 #7F45D3 #C645D3
triadic
#7F45D3 #D37F45 #45D37F
tetradic
#7F45D3 #D34552 #99D345 #45D3C6
square
#7F45D3 #D34552 #99D345 #45D3C6
split-complementary
#7F45D3 #D3C645 #52D345
monochromatic
#461E7F #612AB1 #7F45D3 #A176DF #C3A8EA

Accessibility & contrast

On white

5.68
#7F45D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7F45D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45D3
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45D3#FFFFFF#000000##FFFFFF
##7F45D31.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#6A6786
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f45d3;
/* rgb */ color: rgb(127, 69, 211);
/* oklch */ color: oklch(53.6% 0.207 297.7);
Tailwind
colors: {
  custom: {
    50: '#aa7de1',
    500: '#7f45d3',
    950: '#000000',
  },
}
SCSS
$custom: #7f45d3;
$custom-light: #aa7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45d3",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 264.507,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53614,
    "c": 0.20679,
    "h": 297.7
  },
  "luminance": 0.13471
}

Semantic roles & 50–950 ramp

primary
#7F45D3
secondary
#BFD89C
accent
#E543A3
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F45D3

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

Preview Lab → · Contrast checker → · Palette generator →

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