#7F40CF#7F40CF

#7F40CF is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.208 H 299.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7F40CF
RGBrgb(127, 64, 207)
HSLhsl(266, 60%, 53%)
HSVhsv(266, 69%, 81%)
CMYKcmyk(38.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(42.28, 55.06, -63.77)
CIE-LCHlch(42.28, 84.25, 310.81°)
OKLaboklab(52.68% 0.1019 -0.1819)
OKLCHoklch(52.68% 0.208 299.2)
XYZxyz(21.8455, 12.6836, 60.3166)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40CF #90CF40
analogous
#4048CF #7F40CF #C740CF
triadic
#7F40CF #CF7F40 #40CF7F
tetradic
#7F40CF #CF4048 #90CF40 #40CFC7
square
#7F40CF #CF4048 #90CF40 #40CFC7
split-complementary
#7F40CF #CFC740 #48CF40
monochromatic
#451E77 #612AA8 #7F40CF #A071DB #C1A2E8

Accessibility & contrast

On white

5.94
#7F40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7F40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40CF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40CF#FFFFFF#000000##FFFFFF
##7F40CF1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#6C6283
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f40cf;
/* rgb */ color: rgb(127, 64, 207);
/* oklch */ color: oklch(52.7% 0.208 299.2);
Tailwind
colors: {
  custom: {
    50: '#aa7adf',
    500: '#7f40cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f40cf;
$custom-light: #aa7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40cf",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 266.434,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52676,
    "c": 0.20849,
    "h": 299.2
  },
  "luminance": 0.12684
}

Semantic roles & 50–950 ramp

primary
#7F40CF
secondary
#B9D497
accent
#E3459D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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