#7F40CE#7F40CE

#7F40CE is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.207 H 299.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7F40CE
RGBrgb(127, 64, 206)
HSLhsl(267, 59%, 53%)
HSVhsv(267, 69%, 81%)
CMYKcmyk(38.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(42.21, 54.81, -63.31)
CIE-LCHlch(42.21, 83.74, 310.88°)
OKLaboklab(52.6% 0.102 -0.1806)
OKLCHoklch(52.6% 0.207 299.5)
XYZxyz(21.7236, 12.6348, 59.6748)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40CE #8FCE40
analogous
#4048CE #7F40CE #C640CE
triadic
#7F40CE #CE7F40 #40CE7F
tetradic
#7F40CE #CE4048 #8FCE40 #40CEC6
square
#7F40CE #CE4048 #8FCE40 #40CEC6
split-complementary
#7F40CE #CEC640 #48CE40
monochromatic
#451E75 #612BA6 #7F40CE #A071DA #C0A1E7

Accessibility & contrast

On white

5.95
#7F40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7F40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40CE
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40CE#FFFFFF#000000##FFFFFF
##7F40CE1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#6D6282
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f40ce;
/* rgb */ color: rgb(127, 64, 206);
/* oklch */ color: oklch(52.6% 0.207 299.5);
Tailwind
colors: {
  custom: {
    50: '#aa79de',
    500: '#7f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #7f40ce;
$custom-light: #aa79de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40ce",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 266.62,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52599,
    "c": 0.2074,
    "h": 299.5
  },
  "luminance": 0.12635
}

Semantic roles & 50–950 ramp

primary
#7F40CE
secondary
#B8D496
accent
#E2459D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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