#7F40D0#7F40D0

#7F40D0 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.210 H 299.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7F40D0
RGBrgb(127, 64, 208)
HSLhsl(266, 61%, 53%)
HSVhsv(266, 69%, 82%)
CMYKcmyk(38.9%, 69.2%, 0%, 18.4%)
CIE-LABlab(42.36, 55.31, -64.22)
CIE-LCHlch(42.36, 84.76, 310.73°)
OKLaboklab(52.75% 0.1017 -0.1833)
OKLCHoklch(52.75% 0.21 299)
XYZxyz(21.9681, 12.7326, 60.9625)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40D0 #91D040
analogous
#4049D0 #7F40D0 #C740D0
triadic
#7F40D0 #D07F40 #40D07F
tetradic
#7F40D0 #D04049 #91D040 #40D0C7
square
#7F40D0 #D04049 #91D040 #40D0C7
split-complementary
#7F40D0 #D0C740 #49D040
monochromatic
#451E78 #612AA9 #7F40D0 #A071DC #C1A2E8

Accessibility & contrast

On white

5.92
#7F40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7F40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40D0
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40D0#FFFFFF#000000##FFFFFF
##7F40D01.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D4
Deuteranopia (green-blind)
#0063CD
Tritanopia (blue-blind)
#6C6383
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f40d0;
/* rgb */ color: rgb(127, 64, 208);
/* oklch */ color: oklch(52.8% 0.210 299.0);
Tailwind
colors: {
  custom: {
    50: '#aa7adf',
    500: '#7f40d0',
    950: '#000000',
  },
}
SCSS
$custom: #7f40d0;
$custom-light: #aa7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40d0",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 266.25,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52753,
    "c": 0.20958,
    "h": 299
  },
  "luminance": 0.12733
}

Semantic roles & 50–950 ramp

primary
#7F40D0
secondary
#BAD597
accent
#E4449E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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