#7F40DE#7F40DE

#7F40DE is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.9% C 0.225 H 296.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7F40DE
RGBrgb(127, 64, 222)
HSLhsl(264, 71%, 56%)
HSVhsv(264, 71%, 87%)
CMYKcmyk(42.8%, 71.2%, 0%, 12.9%)
CIE-LABlab(43.44, 58.81, -70.50)
CIE-LCHlch(43.44, 91.81, 309.84°)
OKLaboklab(53.86% 0.0992 -0.2017)
OKLCHoklch(53.86% 0.225 296.2)
XYZxyz(23.7671, 13.4522, 70.4374)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40DE #9FDE40
analogous
#4050DE #7F40DE #CE40DE
triadic
#7F40DE #DE7F40 #40DE7F
tetradic
#7F40DE #DE4050 #9FDE40 #40DECE
square
#7F40DE #DE4050 #9FDE40 #40DECE
split-complementary
#7F40DE #DECE40 #50DE40
monochromatic
#46188B #6021C0 #7F40DE #A274E7 #C5A8F0

Accessibility & contrast

On white

5.69
#7F40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F40DE
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40DE#FFFFFF#000000##FFFFFF
##7F40DE1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E3
Deuteranopia (green-blind)
#0064DB
Tritanopia (blue-blind)
#66688B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f40de;
/* rgb */ color: rgb(127, 64, 222);
/* oklch */ color: oklch(53.9% 0.225 296.2);
Tailwind
colors: {
  custom: {
    50: '#ac7ae9',
    500: '#7f40de',
    950: '#000000',
  },
}
SCSS
$custom: #7f40de;
$custom-light: #ac7ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40de",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 263.924,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.53857,
    "c": 0.22474,
    "h": 296.2
  },
  "luminance": 0.13453
}

Semantic roles & 50–950 ramp

primary
#7F40DE
secondary
#C4DE9C
accent
#ED3AA6
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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